Hello Ken,

Sunday, October 06, 2002, 8:10:20 AM, you wrote:

KS> Is it possible to use Ruby to design a discrete event simulator using
KS> coroutines?  I'm looking for something like the generators in Python 2.2, is
KS> there something like this in Ruby?  The callcc method seems far too
KS> expensive (looks like each one is about 14-15k in Windows XP), and the yield
KS> method seems to return only to a passed in code block, not back to the
KS> caller (I think, I'm new to Ruby).

but there is very cheap threads (it is not native OS threads). of
course, with ability to do synchronization. and even coroutines.rb on
yaraa which gives an example of emulating coroutines via threads


-- 
Best regards,
 Bulat                            mailto:bulatz / integ.ru