chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] cond-expand and macros


From: John Cowan
Subject: Re: [Chicken-hackers] cond-expand and macros
Date: Thu, 19 Nov 2009 19:27:43 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

Thomas Bushnell BSG scripsit:

> The following code does not work:
> 
> (define-syntax foo
>   (syntax-rules ()
>     ((_)
>      (cond-expand
>       (chicken (display "all good\n"))))))
> (foo)
> 

Calling (features) shows that the feature name is "chicken:", not
"chicken".  If you change the above to reference chicken:, all is well.
This is not backward compatible and is still probably a bug, but at
least it's a simple bug.

On the other hand, (cond-expand (chicken (display "all good\n"))) does
output "all good" right away.

-- 
My corporate data's a mess!                     John Cowan
It's all semi-structured, no less.              http://www.ccil.org/~cowan
    But I'll be carefree                        address@hidden
    Using XSLT
On an XML DBMS.




reply via email to

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