We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
guard
tested: cf66cf1
It seems guard syntax evaluates its cond clause s in wrong dynamic environment. e.g.)
(define p0 (make-parameter 1)) (guard (c (#t (display (list (p0) '== 1)) (newline))) (parameterize ((p0 2)) (display (list (p0) '== 2)) (newline) (raise 'unused)))
should print
(2 == 2) (1 == 1)
but it prints
(2 == 2) (2 == 1)
R7RS specifies dynamic environment here as:
That implicit cond expression is evaluated with the continuation and dynamic environment of the guard expression.
cond
The text was updated successfully, but these errors were encountered:
Thanks for the report @okuoku, I'll look into this.
Sorry, something went wrong.
No branches or pull requests
tested: cf66cf1
It seems
guard
syntax evaluates its cond clause s in wrong dynamic environment. e.g.)should print
but it prints
R7RS specifies dynamic environment here as:
The text was updated successfully, but these errors were encountered: