(2011/06/26 18:24), Yui NARUSE wrote:
> In ruby 1.9.2p180
>  t = Thread.new do
>    Thread.current[:var] = "var"
>    Thread.stop
>  end
>  
>  p t[:var] #=> nil
>  p t[:var] #=> "var"
> 
> In ruby 1.8.7
>  p t[:var] #=> "var"
>  p t[:var] #=> "var"

It seems intentional.  When the first access, the Thread.current[:var]
is not initialized (not reached the initialization code).

-- 
// SASADA Koichi at atdot dot net