>>>>> "g" == g forever <g24ever / hotmail.com> writes:

g>    test1, i = callcc { |cc| return cc } # ????

 callcc "capture" the current continuation (in cc) and return it

 when you execute `x.call' the  execution is resumed at this point.

 Perhaps you can take a look at :

 http://blade.nagaokaut.ac.jp/ruby/ruby-talk/index.shtml

 and make a search on "callcc" you'll find other examples.


Guy Decoux