Hi,
In message "Re: using procs with returns result in thread error"
on 03/08/29, Mauricio FernáÏdez <batsman.geo / yahoo.com> writes:
|> |t = proc { return 4 }
|> |
|> |Thread.new {
|> | t.
|> |}.join
|> |
|> |results in a thread error complaining about a return
|> |statement in a thread - this complain feels wrong
|> |to me ...
|>
|> Probably we need better description. I meant "return jump can't
|> across thread". Any suggestion?
|
|Why worry? Anyway the new semantics in 1.8 make this a non-issue.
Because it still happens if we use Proc.new instead of proc.
matz.