teaching languages: fix copying of `test~object' binding to REPL

As Mike noticed, commit d836cba7c9 triggered a different binding
of `test~object' due to the enclosing module context of the `eval'ed
syntax object.
This commit is contained in:
Matthew Flatt 2012-06-23 03:44:55 +08:00
parent f0d856ab7a
commit 7126295905

View File

@ -64,7 +64,7 @@
;; over to the one that is used in the REPL when module->namepsace
;; grabs a hold of this module to make a namespace for the REPL
`(,(syntax-property
#'(define test~object (namespace-variable-value 'test~object))
#`(define #,(datum->syntax #f 'test~object) (namespace-variable-value 'test~object))
'test-call #t)))
'())
,@body-exps)))))]