[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: PATCH: true C coroutines -- yield across C stack from anywhere
- From: Daniel Silverstone <dsilvers@...>
- Date: Fri, 22 Oct 2004 14:51:35 +0100
On Fri, 2004-10-22 at 15:47 +0200, Jean-Christophe Capdevila wrote:
> If i'am not wrong, each call will generate "phantom" calls to CurriedLoops..
No; the CurriedLoops function returns a function which does the
while...do...end looping around the provided function; so you get one
extra function on the stack and it tail-calls anyway so it's not even an
expensive stack frame :-)
D.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 2BC8 4016 2068 7895