in reply to
Re: Re: Re: (Perl6) Groking Continuations
in thread (Perl6) Groking Continuations
So the (real) continuation (saved in a global variable) could be called even after the body of call_cc returned?
I see. If the function call activation frames are treated just like everything else, and there is no special action for "going out of scope", keeping a live reference to it is just like any other closure.
In Perl 6 we'll have to watch it because of the mechanism for having block-exit code in a finally clause or added dynamically by a caller. What would that do, if one can exit more times than enter?! (I have some ideas of what it should mean, but that's for another thread)