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

Env seems to be lost #687

Closed
arthurpaulino opened this issue Sep 19, 2023 · 1 comment · Fixed by #959
Closed

Env seems to be lost #687

arthurpaulino opened this issue Sep 19, 2023 · 1 comment · Fixed by #959
Labels
bug Something isn't working CO-Compilers Compilers track

Comments

@arthurpaulino
Copy link
Member

arthurpaulino commented Sep 19, 2023

Reported on Zulip: https://zulip.lurk-lab.com/#narrow/stream/17-lurk/topic/Cannot.20access.20env.20after.20eval/near/113458

This works:

(let (
    (env (let  ((f (lambda (x) x))) (current-env)))
    (apply1 (lambda (fn arg) (fn arg)))
    (apply (lambda (expr) (apply1 (eval (car expr) env) (cdr expr)))))
  (apply '(f 1)))

But this doesn't

(let (
    (env (let  ((f (lambda (x) x))) (current-env)))
    (apply (lambda (expr) ((eval (car expr) env) (cdr expr)))))
  (apply '(f 1)))

But apparently both should work

@arthurpaulino arthurpaulino added bug Something isn't working CO-Compilers Compilers track DX-DevEx Developer Experience track labels Sep 19, 2023
@arthurpaulino arthurpaulino removed the DX-DevEx Developer Experience track label Oct 13, 2023
@arthurpaulino
Copy link
Member Author

This reproduces in LEM so it's effectively a bug in the CEK machine itself

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CO-Compilers Compilers track
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant