[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: So, what the heck is a continuation anyway?
At 11:00 AM 12/10/2001 -0500, Jeremy Hylton wrote:
> >>>>> "DS" == Dan Sugalski <dan@sidhe.org> writes:
>
> DS> can I get a continuation object/marker from within A and pass it
> DS> to B, which then triggers it and returns to A even though I've
> DS> unwound the stack frames for A?
> >>
> >> Sure.
> >>
> >> You can invoke the continuation and return through A an arbitrary
> >> number of times.
>
> DS> Hmmm. That means I need to snapshot the stack frames and the
> DS> scratchpads. Doable.
>
>The problem we run into with Python is that there are so many places
>where C stack frames get intermingled with a chain of Python stack
>frames:
Perl's stack is pretty much independent of the C/system stack, so that's
not a problem. We have other problems to compensate, of course. :)
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
dan@sidhe.org have teddy bears and even
teddy bears get drunk