On Mon, 8 Jul 2002 16:54:16 -0400, Dan Sugalski wrote:
> while ($foo) {
> $foo--;
> }
>
> Pretty simple. (For illustrative purposes) To do that with
> continuations, it'd look like:
>
> $cont = take_continuation();
> if ($foo) {
> $foo--;
> invoke($cont);
> }
>
> When you invoke a continuation you put the call scratchpads and lexical
> scratchpads back to the state they were when you took the continuation.
If you restore the lexicals, how does this ever finish?
--
Peter Haworth [EMAIL PROTECTED]
"It's not a can of worms, it's a tank of shai-hulud."
-- Jarkko Hietaniemi