Hi,<br><br>These links should help:<br><br><a href="https://webmail.iro.umontreal.ca/pipermail/gambit-list/2006-May/000690.html">https://webmail.iro.umontreal.ca/pipermail/gambit-list/2006-May/000690.html</a><br><a href="https://webmail.iro.umontreal.ca/pipermail/gambit-list/2006-May/000692.html">https://webmail.iro.umontreal.ca/pipermail/gambit-list/2006-May/000692.html</a><br>
<br>Bill<br><br><div class="gmail_quote">On Sat, Jan 24, 2009 at 2:42 PM, symbolic expression <span dir="ltr"><<a href="mailto:symbolic.expression@gmail.com">symbolic.expression@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
(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><font color="#888888">-- symbolic expression<br>
</font><br>_______________________________________________<br>
Gambit-list mailing list<br>
<a href="mailto:Gambit-list@iro.umontreal.ca">Gambit-list@iro.umontreal.ca</a><br>
<a href="https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list" target="_blank">https://webmail.iro.umontreal.ca/mailman/listinfo/gambit-list</a><br>
<br></blockquote></div><br>