[plt-scheme] Null syntax / Conditional definition
Hi,
I have two questions about MzScheme syntax.
(1) Is it possible to define syntax or syntax-id
which disappears when expanded ?
[Example 1]
The expression
(string-append "pqr" ABC "xyz")
expands to
(string-append "pqr" "xyz")
[Example 2]
The expression
(string-append "pqr" (ABC "xyz"))
expands to
(string-append "pqr")
(2) Is it possible to switch syntax definition (or normal definition)
depending on some flags?
[Example]
(if-defined WIN32
(define ABC 123)
(define-syntax XYZ ...))
(if-defined MACOSX
(define ABC 567)
(define-syntax XYZ ...))
Chihiro Kuraya
__________________________________
Save the earth
http://pr.mail.yahoo.co.jp/ondanka/