This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Quick syncase/syntax-rules question.



(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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]