From: Dave Thomas Date: 2000-05-23T00:05:54-05:00 Subject: [ruby-talk:02946] Re: Continuation causes Segmentation fault! "Jack Hou" writes: > Yeh! It works. Thank you very mush. > > Still have a question though. The first example in the reference uses > Continuation to handcraft a loop, I know it works and I should not do it > that way. The second example uses it to jump out inner loop, but it can be > done with throw and catch structure, and I think the latter one is more > readable. What is real usage of Continuation structure? There are many creative answers to this, but to be honest I haven't yet seen anyone come back with anything that would be seriously used to production code. In general, for everyday use catch/throw and threads are easier to use and understand than continuations. Continuations, on the other hand, do let you invent your own language constructs and generally impress your neighbors ;-) Dave