Hi,
These links should help:
https://webmail.iro.umontreal.ca/pipermail/gambit-list/2006-May/000690.html
https://webmail.iro.umontreal.ca/pipermail/gambit-list/2006-May/000692.html
Bill
(define (foo x) (+ x 1))
(define-macro (bar x) (foo x))
(bar 10)
this baffles me, if I open up gsi and paste this into the interpreter, I get 11
however, if I stuff this in test.scm and run "gsi test.scm" I get:
*** ERROR IN #<procedure #2>, "test.scm"@2.24 -- Unbound variable: foo
what's going on? how do I fix this?
[I would prefer that code in "gsi test.scm" has the same effect as if I type it into the interpreter]
thanks in advance!
--
-- symbolic expression
_______________________________________________
Gambit-list mailing list
Gambit-list@iro.umontreal.ca
https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list