[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: So, what the heck is a continuation anyway?
> X-Sender: email@example.com
> Date: Mon, 10 Dec 2001 15:37:11 -0500
> From: Dan Sugalski <firstname.lastname@example.org>
> Cc: "Seth Gordon" <email@example.com>, firstname.lastname@example.org
> Content-Type: text/plain; charset="us-ascii"; format=flowed
> Sender: email@example.com
> Precedence: bulk
> At 10:11 AM 12/10/2001 -0500, Jeremy Hylton wrote:
> > >>>>> "DS" == Dan Sugalski <firstname.lastname@example.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?
> >You can invoke the continuation and return through A an arbitrary
> >number of times.
> Hmmm. That means I need to snapshot the stack frames and the scratchpads.
Careful, you don't want to crash as often as Stackless Python.
Unless you heap allocate all values, copying the stack naively
will be a problem.