Navigation Menu

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

recursive modules syntax #2490

Closed
vicuna opened this issue Apr 22, 2004 · 1 comment
Closed

recursive modules syntax #2490

vicuna opened this issue Apr 22, 2004 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 22, 2004

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

Bug description

Full_Name: Ethan Aubin
Version: 3.07+02
OS: Windows
Submission from: h000393e64fbb.ne.client2.attbi.com (65.96.37.11)

Hi, I'm playing with recursive modules and noticed that I've got to throw
parenthesis around the 'E with type ...' part of the below statement, otherwise
the code does not parse.

module rec Env : (E with type term = Term.term)
and Term : TermType with type term =
[Integer of int | Closure of string * Term.term * Env.env]

I think that without the parenthesis, this should still parse according to the
grammar in the manual. Thanks - EA

@vicuna
Copy link
Author

vicuna commented Apr 23, 2004

Comment author: administrator

Shift/reduce ambiguity. Nothing we can do about it.

@vicuna vicuna closed this as completed Apr 23, 2004
@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