On Mon, 8 Jul 2002, Dan Sugalski wrote:

> Pretty simple. (For illustrative purposes) To do that with
> continuations, it'd look like:
>
>     $cont = take_continuation();
>     if ($foo) {
>       $foo--;
>       invoke($cont);
>     }
>
> take_continuation() returns a continuation for the current point (or it
> could return one for the start of the next statement--either works),

I think starting at the next statement would be cooler in some ways:

  $cont = take_continuation() and start_async_op($cont) and return;

  # do other stuff with results of async_op

- D

<[EMAIL PROTECTED]>

Reply via email to