[gambit-list] namespace woes
lowly coder
lowlycoder at huoyanjinjing.com
Sat Jul 25 04:47:28 EDT 2009
~$ cat test.scm
(define bleh 10)
(##namespace ("foo#"))
(##include "~~lib/gambit#.scm")
(define + 20)
(define blah 20)
(define bleh 20)
(##namespace (""))
(pp `(+ ,+))
(pp `(bleh ,bleh))
(pp `(blah ,blah))
; what's going on?
~$ gsi test.scm
(+ 20)
(bleh 10)
*** ERROR IN "test.scm"@13.13 -- Unbound variable: blah
what happened? how did I just rebind + ? I thought it would only affect foo#+
furthermore, it also seems to have effect on varaibles like "angle"
Thanks!
More information about the Gambit-list
mailing list