From: "headius (Charles Nutter)" Date: 2012-11-20T07:32:09+09:00 Subject: [ruby-core:49620] [ruby-trunk - Bug #7406] English.rb says that $_ is thread-local, but it is frame-local Issue #7406 has been updated by headius (Charles Nutter). I guess this is a bit confusing, since it does also say it's scope-local. The thread-local part throws me off a bit. Is it thread-local or scope-local? Here's the example again, this time actually running in 2.0.0.preview1: system ~/projects/jruby $ irb-2.0.0 irb(main):001:0> $_ = 'foo' => "foo" irb(main):002:0> def blah; p $_; end => nil irb(main):003:0> p $_ "foo" => "foo" irb(main):004:0> blah nil => nil ---------------------------------------- Bug #7406: English.rb says that $_ is thread-local, but it is frame-local https://bugs.ruby-lang.org/issues/7406#change-33134 Author: headius (Charles Nutter) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: 2.0.0preview1 system ~/projects/jruby/gist-4110634 $ jirb irb(main):001:0> $_ = 'foo' => "foo" irb(main):002:0> def blah; p $_; end => nil irb(main):003:0> p $_ "foo" => "foo" irb(main):004:0> blah nil => nil Not thread-local. -- http://bugs.ruby-lang.org/