Skip to content

Commit

Permalink
repair (scheme-report-environment 5) and (ieee-environment)
Browse files Browse the repository at this point in the history
Include non-`r6rs:`-prefixed names in those environments.
  • Loading branch information
mflatt committed Sep 20, 2024
1 parent f01e22d commit 9efbb39
Show file tree
Hide file tree
Showing 5 changed files with 187 additions and 142 deletions.
7 changes: 7 additions & 0 deletions mats/misc.ms
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,9 @@
(eq? (eval '(let ((x 3)) x) (ieee-environment)) 3)
(eq? (eval '(let ((x 3)) x) (null-environment 5)) 3)

(eq? (eval '(< 3 5) (scheme-report-environment 5)) #true)
(eq? (eval '(< 3 5) (ieee-environment)) #true)

(eq? (eval '(let ((p (delay 3))) (force p))) 3)
(eq? (eval '(let ((p (delay 3))) (force p)) (interaction-environment)) 3)
(eq? (eval '(let ((p (delay 3))) (force p)) (scheme-report-environment 5)) 3)
Expand All @@ -1487,6 +1490,10 @@
(error? (eval '(sort < '(3 2 4)) (scheme-report-environment 5)))
(error? (eval '(sort < '(3 2 4)) (ieee-environment)))
(error? (eval '(sort < '(3 2 4)) (null-environment 5)))

(error? (eval '(< 3) (scheme-report-environment 5)))
(error? (eval '(< 3) (ieee-environment)))

)

(mat eval2
Expand Down
Loading

0 comments on commit 9efbb39

Please sign in to comment.