develooper Front page | perl.perl6.internals | Postings from November 2004

Re: Continuations, basic blocks, loops and register allocation

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
November 16, 2004 10:41
Subject:
Re: Continuations, basic blocks, loops and register allocation
Message ID:
a06200705bdbff994446d@[172.24.18.155]
At 10:32 AM -0800 11/16/04, Jeff Clites wrote:
>The continuation preserves the frame (the mapping from logical 
>variables to their values), but not the values of those variables at 
>the time the continuation was created.

This is one of the fundamental properties of continuations, but it 
does throw people. And it's why register contents have to be thrown 
away when a continuation is invoked, since the registers have values, 
and continuations don't preserve values.
-- 
				Dan

--------------------------------------it's like this-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About