On Sun, Mar 15, 2009 at 11:22 AM, Tobia Conforto
<[email protected]> 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


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to