You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
(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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: