This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Quick syncase/syntax-rules question.
Mikael Djurfeldt <mdj@mdj.nada.kth.se> writes:
> (foobar) fails because it expands to (baz) which doesn't have a
> binding at toplevel. If you export baz from (some module), it will
> work.
Right. I figured that out expirmentally.
> This is of course a serious bug in the macro/module system: The baz
> binding should not be looked up in the toplevel module but in the
> lexical scope of foobar = (some module).
Right. That's what I wanted.
> It will be possible to address this problem once Jost Boekemeier's
> environment patches has been applied.
Great. Though I just rewrote srfi-0 in terms of the boot-9.scm
macros. A bit of a pain, but now it'll work in the current stable
guile versions. It also allowed me to make cond-expand extensible so
that if you do a
(use-modules (srfi srfi-1))
suddenly cond-expand will know that this should expand to #t
(cond-expand
(srfi-1 #t)
(else #f))
--
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930