chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Re: A few questions


From: Elf
Subject: Re: [Chicken-users] Re: A few questions
Date: Thu, 31 Jan 2008 21:46:58 -0800 (PST)

On Thu, 31 Jan 2008, John Cowan wrote:

Elf scripsit:

they'll all be call-with-values on the inside, or the equivalent thereof.

Almost.  When you have one of these restricted macros, you can be quite
sure that the producer and consumer lambdas don't escape the construct.
That allows certain optimizations that would otherwise be difficult or
(in the presence of call/cc) impossible, like not actually having them
(as I said, having the producer put its n returned values into n registers
where the consumer code (the body) expects to find them.



a, how are they restricted?
b, whats to keep someone from wrapping these in a call/cc and escaping?
(call/cc (lambda (k) (receive (a b) (k 1) this-never-gets-entered...)))
is perfectly valid.

-elf





reply via email to

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