chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] define-macro in Chicken 4.0


From: felix winkelmann
Subject: Re: [Chicken-users] define-macro in Chicken 4.0
Date: Sun, 15 Mar 2009 12:24:31 +0100

On Sun, Mar 15, 2009 at 11:22 AM, Tobia Conforto
<address@hidden> wrote:
> I wrote:
>>
>> (import-for-syntax matchable)
>>
>> (define-syntax define-macro
>>  (lambda (m . _)
>>    `(define-syntax ,(caadr m)
>>       (lambda (e . _)
>>         (match e
>>           (,(cadr m) ,@(cddr m)))))))
>
> Eduardo, does this work for you?
> I've tried it with some old macros I had lying around and it seems to work.
>
> If you (and others) can confirm it works with all your existing base of
> define-macro code and it doesn't introduce new problems*, maybe we could
> make an egg of it.

Sorry, but this does not work. An identifier introduced by a previous (hygienic)
macro expansion will not be correctly expanded.


cheers,
felix




reply via email to

[Prev in Thread] Current Thread [Next in Thread]