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: 1573 Reporter: administrator Status: closed Resolution: fixed Priority: normal Severity: minor Category: ~DO NOT USE (was: OCaml general)
Bug description
The ocaml parser accepts the expression
let x = Pervasives.(+);;
but if I follow through the grammar in the manual, it says it
shouldn't. The problem is that according to the manual,
"Pervasives.(+)" isn't a value-path.
The value-name production admits lowercase identifiers or
parenthesized operators like "(+)".
--
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: 1573
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)
Bug description
The ocaml parser accepts the expression
let x = Pervasives.(+);;
but if I follow through the grammar in the manual, it says it
shouldn't. The problem is that according to the manual,
"Pervasives.(+)" isn't a value-path.
The expression is obviously meaningful and useful, so I think the
error is in the manual. The production for value-path at
http://caml.inria.fr/ocaml/htmlman/manual011.html reads:
value-path ::= value-name
| module-path . lowercase-ident
and I think it should read
value-path ::= value-name
| module-path . value-name
The value-name production admits lowercase identifiers or
parenthesized operators like "(+)".
--
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: