chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Dual-format macros


From: Elf
Subject: Re: [Chicken-users] Dual-format macros
Date: Mon, 18 Aug 2008 09:42:59 -0700 (PDT)

On Mon, 18 Aug 2008, Tobia Conforto wrote:

On 6 Aug 2008, Jörg F. Wittenberger wrote:
So far I've got (from watching the mailing list) the feeling that define-macro and define-syntax don't play well together.

If it was better to have both versions available, the define-macro version for compatibility and define-syntax for the upcoming hygienic chicken, then: how should this be handled? Two eggs?


I've found this in the amb egg, it solves the problem nicely:

(cond-expand
 (hygienic-macros
   ;;put here a bunch of define-syntax + syntax-rules macros
   )
 (else
   ;;put here the same macros written in un-hygienic define-macro
   ))

define-macro will no longer exist in chicken4 (aka hygienic chicken).

-elf

reply via email to

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