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.


BTW, I thought you might be interested:

It *is* possible to get Guile's current syntax-case macro support to
behave properly within a module, meaning that it recursively expands
macros.  This is achieved by specifying the syncase module as eval
transformer.  If you load the following module and use it, the
exported (foo) will actually expand to 42.

(define-module (a)
  :use-syntax (ice-9 syncase))

(export foo bar)

(define-syntax bar
  (syntax-rules ()
    ((bar) 42)))

(define-syntax foo
  (syntax-rules ()
    ((foo) (bar))))

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