From: Jeremy Henty Date: 2002-12-20T21:21:47+09:00 Subject: Re: Ruby BUG when using PStore and fork In article <1040187828.294964.16002.nullmailer@picachu.netlab.jp>, Yukihiro Matsumoto wrote: > In message "Re: Ruby BUG when using PStore and fork" > on 02/12/17, Jeremy Henty writes: > >|> So do you recommend any better message? >| >| ... something like "fork: supplied block must terminate normally", >|assuming that "normally" is the appropriate word here. > > For your information: the latest 1.6.8 snapshot says "uncaught > throw". That is certainly accurate, but it might be confusing to someone who wrote "catch :foo do fork do throw :foo end end". It looks as though the throw should be caught! It would be nice if the message could indicate that fork does not allow the block to transfer control outside of itself. I have no idea whether this is feasible. By the way, are there any other cases where the flow of control in a block is restricted in this way, or is fork a special case? Regards, Jeremy Henty