Skip to content

Commit

Permalink
fix :scm and other eval code for guile
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamada committed May 10, 2012
1 parent 3580935 commit 2da377d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hasp.scm
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
(implode ", "
(map
(lambda (x)
(let ((rv (eval x)))
(let ((rv (eval x (interaction-environment))))
(if (equal? rv (cond (#f #f)))
"()"
(data-str rv))))
Expand Down
2 changes: 1 addition & 1 deletion src/load-file.scm
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@
(implode ", "
(map
(lambda (x)
(let ((rv (eval x)))
(let ((rv (eval x (interaction-environment))))
(if (equal? rv (cond (#f #f)))
"()"
(data-str rv))))
Expand Down
2 changes: 1 addition & 1 deletion src/sugar-read.scm
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@
(define (sugar-load filename)
(define (load port)
(let ((inp (sugar-read-style #t port)))
(if (eof-object? inp) #t (begin (eval inp) (load port)))))
(if (eof-object? inp) #t (begin (eval inp (interaction-environment)) (load port)))))
(load (open-input-file filename)))

(define (sugar-enable)
Expand Down

0 comments on commit 2da377d

Please sign in to comment.