[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: request review & testing: syncase
From: |
Neil Jerram |
Subject: |
Re: request review & testing: syncase |
Date: |
Sun, 12 Apr 2009 14:49:06 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Andy Wingo <address@hidden> writes:
> Hey folks,
>
> I've rebased the syncase branch on top of current master, and fixed
> everything I know about. Now you can have macros in modules that expand
> to references to identifiers that are local to the module that the macro
> was defined in.
>
> I mean to say:
>
> (define-module (foo)
> #:use-module (ice-9 syncase)
> #:export (bar))
>
> (define-syntax bar
> (syntax-rules ()
> ((_ y)
> (kar (frob y)))))
>
> (define kar car)
>
> (define-syntax frob
> (syntax-rules ()
> ((_ y)
> y)))
>
> (define-module (baz)
> #:use-module (foo))
>
> (bar '(a b c d))
> => a
Cool. Does it work for defmacro and define-macro too?
> Give it a look-see, a whirl, a what-have-you! I'd like to merge this one
> in at some point within the next week or two. I'll wait for an OK from
> Ludo or Neil before doing so, though.
Thanks. Starting to review in detail now...
Neil