[#3006] mismatched quotation — "stevan apter" <apter@...>

ruby documentation uses a punctuation convention i've never seen

13 messages 2000/05/27

[ruby-talk:02936] Re: Continuation causes Segmentation fault!

From: matz@... (Yukihiro Matsumoto)
Date: 2000-05-23 03:05:12 UTC
List: ruby-talk #2936
Hi,

In message "[ruby-talk:02931] Re: Continuation causes Segmentation fault!"
    on 00/05/22, "Jack Hou" <jackfhou@hotmail.com> writes:

|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?

Uh, are you asking why Continuation is there?

Well, just because.

Once upon a time, someone asked me how to implement continuation for
Ruby interpreter.  I answered that it was easy by using internal
thread structure.  Thread and Continuation share pretty much
attributes.  One can be implemented using another.  Then he
implemented continuation following my advise.  Since then,
continuation lives in Ruby happily ever after.

If you (or somebody else) think of good usage of continuation in Ruby,
tell me, please.

							matz.

In This Thread