[gambit-list] How to use define-syntax and cond-expand in one program?

Sven Hartrumpf hartrumpf at gmx.net
Tue Jul 3 03:39:55 EDT 2012


Hello Marc.

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.

Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: psyntax73.ss.patch
Type: text/x-patch
Size: 2632 bytes
Desc: not available
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20120703/42bbd6ac/attachment.bin>


More information about the Gambit-list mailing list