(define (foo x) (+ x 1))<br>(define-macro (bar x) (foo x))<br>(bar 10)<br><br>this baffles me, if I open up gsi and paste this into the interpreter, I get 11<br>however, if I stuff this in test.scm and run "gsi test.scm" I get:<br>
<br>*** ERROR IN #<procedure #2>, "test.scm"@2.24 -- Unbound variable: foo<br><br>what's going on? how do I fix this?<br><br>[I would prefer that code in "gsi test.scm" has the same effect as if I type it into the interpreter]<br>
<br>thanks in advance!<br><br clear="all"><br>-- <br>-- symbolic expression<br>