Leopold Toetsch <[EMAIL PROTECTED]> writes:

> Piers Cawley wrote:
>
>> Leopold Toetsch <[EMAIL PROTECTED]> writes:
>> 
>>>At (1) the continuation is marked with C<dont_cache_retc>. In C<save_context>
>>>this flag is propagated to the stacks in the continuation's context. At
>>>(2) or any other place, where this stacks are popped off, the stack
>>>chunks are not put onto the stack chunk freelist.
>>>
>> That seems to make sense. 
>
> And it works (for your code)
>
> Here is a proof of concept patchoid:

Fabulous

>
> 1) change to your example code:
>       $P1 = clone P1
>       store_lex 1, "cc", $P1
> (the clone strips off all recycle flags)

Oh nice, much neater than what I was thinking of involving making a
'real' continuation and copying context info across from the return
continuation. Does this pretty much remove the last distinction between
RetContinuation and Continuation?

Reply via email to