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

Bug in typing/env.ml #3067

Closed
vicuna opened this issue Dec 3, 2001 · 1 comment
Closed

Bug in typing/env.ml #3067

vicuna opened this issue Dec 3, 2001 · 1 comment
Labels

Comments

@vicuna
Copy link

vicuna commented Dec 3, 2001

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

Bug description

Full_Name: Vassili Karpov
Version: 3.03(Alpha)
OS: Linux ia32
Submission from: cache1-kh.comex.ru (217.10.35.250)

In env.ml:open_signature the newenv is being carefully built inside
fold_left2, followed by this:
{ newenv with summary = Env_open(env.summary, root) }
i.e. throw away all the hard work of fold_left2, i guess it should
really be: { newenv with summary = Env_open(newenv.summary, root) }

@vicuna
Copy link
Author

vicuna commented Dec 3, 2001

Comment author: administrator

In env.ml:open_signature the newenv is being carefully built inside
fold_left2, followed by this:
{ newenv with summary = Env_open(env.summary, root) }
i.e. throw away all the hard work of fold_left2, i guess it should
really be: { newenv with summary = Env_open(newenv.summary, root) }

No, no, this is intended. The fold_left2 simulates the insertion of
all components of the signature in the current environment, however
the summary (which is a compact recipe for rebuilding the environment,
e.g. in the debugger) simply records that we did an "open" operation,
not each insertion.

  • Xavier Leroy

@vicuna vicuna closed this as completed Dec 3, 2001
@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