<div dir="ltr"><div><div><div><div>I want to make available a macro in the REPL.  The macro is also used by a utility function which I also want to use in the repl<span style="font-family:courier new,monospace"><br><br>;; ~/.gambcini.scm<br>
</span></div></div><span style="font-family:courier new,monospace">(define first car)<br>(define-macro (mac . args)<br>  (first args))<br><br>(define (foo . args)<br>  (mac args))<br></span><br></div>The macro is purposely unquoted since it is meant to change structure of its argument<br>
<br>When I run gsi I get <br><br>*** ERROR IN ##raise-unbound-global-exception -- Unbound variable: first<br><br></div><div>I think this happens because the macro is expanded before first is defined.  How do I avoid this problem and still have foo and mac available in the repl?<br>
</div><div><br>Thanks<br></div><br></div>