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

Manual says Pervasives.(+) is not a value-path #8044

Closed
vicuna opened this issue Mar 6, 2003 · 1 comment
Closed

Manual says Pervasives.(+) is not a value-path #8044

vicuna opened this issue Mar 6, 2003 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Mar 6, 2003

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

@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