From: "G.Durga Prasad" Date: 2006-02-14T17:25:30+09:00 Subject: Re: Continuation in ruby On 2/14/06, Minkoo Seo wrote: > Hi all. > > I've written the following code to learn continuations in ruby only to > fail. Please have a look at: > From another learner Look at my following try def print_num for i in (1..10) puts i if i % 2 == 0; callcc{|c| return c}; end puts "** cont.call brings you here" end return nil end cont = print_num puts "Yae, I love even~" cont.call if cont puts "Bye" Hope this helps Prasad