[gambit-list] How to load syntax definitions?
Sascha Ziemann
ceving at gmail.com
Mon Jan 16 13:34:49 EST 2012
I have a problem loading a file which defines syntax. It does not work
in Gambit although it works in other Schemes.
This is file x.scm:
(define-syntax x
(syntax-rules ()
((_) (display "x\n"))))
(load "y.scm")
(x)
(y)
And this is y.scm:
(define-syntax y
(syntax-rules ()
((_) (display "y\n"))))
When I run Gambit I get an error:
$ gsi -:s x.scm
x
*** ERROR IN "x.scm"@8.2 -- Unbound variable: y
But this works in Gauche, Bigloo and Chicken:
$ gosh x.scm
x
y
$ bigloo -s -i x.scm
x
y
$ csi -qb x.scm
x
y
Who is right?
More information about the Gambit-list
mailing list