[gambit-list] How to use define-syntax and cond-expand in one program?
hartrumpf at gmx.net
Tue Jul 3 03:39:55 EDT 2012
Fri, 29 Jun 2012 13:05:01 -0400, feeley wrote:
> The cond-expand macro is defined both in the Gambit runtime and in the
> syntax-case expander. The native Gambit version accesses the cond-expand
> feature list, but the syntax-case version does not (because it is
> implemented with syntax-rules, which can't execute code which accesses the
> cond-expand feature list).
> The solution would be to rewrite the syntax-case version of cond-expand
> using the syntax-case form. If you are interested in doing this, the code
> is in lib/psyntax73.ss .
I tried, see attached patch.
> You'll also need a syntax-case version of
> define-cond-expand-feature to avoid phasing problems.
I am unsure how to fix this. Sorry.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2632 bytes
Desc: not available
More information about the Gambit-list