chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Dual-format macros


From: Tobia Conforto
Subject: [Chicken-users] Dual-format macros
Date: Mon, 18 Aug 2008 18:17:35 +0200

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
    ))


Tobia



reply via email to

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