Matthew Kerwin wrote in post #1090641:
>
> Thought of one (sorry for replying to myself):
>
>     a = 1
>     loop do
>       Thread.new { b=a; p b }
>       a += 1
>     end
>
> .. where `a += 1` is likely to run before `b=a`;

What makes you think that?

-- 
Posted via http://www.ruby-forum.com/.