From: Sean O'Halpin Date: 2005-09-22T10:47:40+09:00 Subject: Re: Continuation - where does it continue Hi, this finally cleared up Ruby's continuations for me too. Would this be the effect you're after? # code def cc puts "do A" puts "----> 1. #{caller}" cont = callcc { |cont| return cont} puts "----> 2. #{caller}" puts "do B" end puts "calling cc" if cont = cc() puts "doing other stuff" cont.call() if cont puts "end of work" puts end #output __END__ calling cc do A ----> 1. continuations.rb:10 doing other stuff ----> 2. continuations.rb:10 do B #end I'm curious - what problem are you trying to solve? Regards, Sean On 9/21/05, michele wrote: > AHA - EUREKA!!! > > Thanks for your very quick answers! After "studying" continuations for > a couple of days, reading everthing I could find about, I think I > finally understand it. Your answers made it all clear. > > > Michele > > >