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

compile-of unwind-protect #268

Closed
sasagawa888 opened this issue May 21, 2023 · 2 comments
Closed

compile-of unwind-protect #268

sasagawa888 opened this issue May 21, 2023 · 2 comments

Comments

@sasagawa888
Copy link
Owner

The behavior of unwind-protect differs between the interpreter and the compiler.

Easy-ISLisp Ver2.94
> (load "tests/bug.o")
T
> (unwind2)
"should be printed second"
"should be printed first"
NIL
> 

@gtnoble
Copy link
Contributor

gtnoble commented May 22, 2023

Thank you for noticing this! I was running some compiled code and couldn't understand why it wasn't working.

@sasagawa888
Copy link
Owner Author

Fixed.

Easy-ISLisp Ver2.95
> (load "tests/bug.o")
T
> (unwind1)
"should be printed first"
"should be printed second"
"should be printed third"
NIL
> (unwind2)
"should be printed first"
"should be printed second"
NIL
> 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants