This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
Re: Quick syncase/syntax-rules question.
- To: guile at sourceware dot cygnus dot com
- Subject: Re: Quick syncase/syntax-rules question.
- From: Rob Browning <rlb at cs dot utexas dot edu>
- Date: 29 Dec 1999 01:33:13 -0600
- References: <87u2l31w74.fsf@raven.localnet>
(Resending after finding out that my provider (Time Warner) is more or
less completely blocked by ORBS. I've made other arrangements now,
and I'll be running away from TW screaming as soon as jump.net covers
my area (in about 3 months))
Rob Browning <rlb@cs.utexas.edu> writes:
> I'm a little confused about define-syntax and syntax-rules as
> implemented by syntax-rules. If I say
So after some more experimentation, it looks like define-syntax
doesn't do recursive expansions on the template replacements at all.
Is that "correct"? If so, it seems to substantially limit the
usefulness of define-syntax/syntax-case.
(foobar) from the top level will fail with a module defined like this:
(define-module (some module))
(use-modules (ice-9 syncase))
(defmacro baz () 42)
(define-syntax foobar
(syntax-rules ()
((foobar) (baz))))
(export-syntax foobar)
--
Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930