The block usually wants to return a useful value itself.


On Mon, 7 Mar 2005 08:16:17 +0900, Joel VanderWerf
<vjoel / path.berkeley.edu> wrote:
> Joel VanderWerf wrote:
> > 2. So a result can be passed to the continuation.
> 
> Duh. Of course you can do that with
> 
>    c = callcc { |c| c }
> 
> as the article says. The first time through, the value assigned to c
> will be the continuation. The second time (after c.call(x)), the value
> assigned to c will be arg x.
> 
> 


-- 
spooq