Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REVISED: Methods can take keyword arguments #8130

Closed
vicuna opened this issue May 1, 2003 · 1 comment
Closed

REVISED: Methods can take keyword arguments #8130

vicuna opened this issue May 1, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented May 1, 2003

Original bug ID: 1669
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

I made the same error in this one as the one about class arguments.
Here's a revised bug report; please delete the previous one from me
with the same subject.

In the production for class-field, the grammar at
http://caml.inria.fr/ocaml/htmlman/manual017.html says that arguments
following a method-name must be patterns. This would disallow keyword
arguments to methods, such as

class foo = object method bar ~baz = 0 + baz end;;

which are accepted by OCAML. I think the occurrence of "pattern" in

class-field ::= ...
| method [private] method-name {pattern} [:typexpr] = expr

should be replaced with "parameter".

(The error in the previous report was that I wrote "argument" instead
of "parameter" in my proposed fix.)

Tim Freeman tim@fungible.com
Which is worse: ignorance or apathy? Who knows? Who cares?
GPG public key fingerprint ECDF 46F8 3B80 BB9E 575D 7180 76DF FE00 34B1 5C78

@vicuna
Copy link
Author

vicuna commented Aug 20, 2003

Comment author: administrator

Manual fixed 2003-08-20 by XL

@vicuna vicuna closed this as completed Aug 20, 2003
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant