define-values

Jim White jim@pagesmiths.com
Tue Mar 22 22:19:00 GMT 2005


Steve Yegge wrote:

> ...
> And in any case, the macro only works for top-level definitions, not
> internal ones (according to the FAQ).

I'm fairly sure that macro is no good.  It seems pretty clear the 'var' 
symbol is getting mixed up with 'values' at least.  Also the conflict in 
binding contexts (need to bind to get to the values but want to creat a 
top-level definition) seems pretty tough (although I'm sure some syntax 
guru can figure something out probably using set!).

> Would it be worthwhile to add an implementation of define-values to Kawa?

I think the useful macro is receive:

http://www.gnu.org/software/kawa/Multiple-values.html#Multiple%20values
http://srfi.schemers.org/srfi-8/srfi-8.html

Jim



More information about the Kawa mailing list