At 8:30 PM +0200 6/8/02, Jerome Vouillon wrote:
>On Fri, Jun 07, 2002 at 07:40:14PM -0400, Melvin Smith wrote:
>>  The support isn't complete, for example, co-routines, etc. need to
>>  swap in their own context, which right now they don't do.
>
>Instead of using some space on the stack, co-routines can store all
>their local variables into their closure.  Then, there is no need to
>swap in any context.

You still need to store the stack frames created since the start of 
the coroutine when picking up after the yield. Otherwise we're 
declaring that coroutines can't use any stack at the point a yield is 
called, which is a rather big thing to declare.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                       teddy bears get drunk

Reply via email to