in reply to Re: (Perl6) Groking Continuations
in thread (Perl6) Groking Continuations
Hmm, I think that's basically a try/catch mechanism. That is, call_cc gives you a block which includes fred. Calling fred will pop out of the whole call_cc block, even if fred was called by a subroutine deeply nested in the calling sequence. That is, it generates a "throw" keyword for you that's specific to this "try" scope. The argument to fred is used to signal exception data back to the point after call_cc, which can use that to distinguish success from failure.
—John
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Re: (Perl6) Groking Continuations
by andrewc (Acolyte) on Apr 11, 2003 at 16:49 UTC | |
by John M. Dlugosz (Monsignor) on Apr 11, 2003 at 21:49 UTC | |
by Elian (Parson) on Apr 11, 2003 at 22:55 UTC | |
by John M. Dlugosz (Monsignor) on Apr 17, 2003 at 19:40 UTC |
In Section
Seekers of Perl Wisdom