Project

General

Profile

Actions

Bug #7406

closed

English.rb says that $_ is thread-local, but it is frame-local

Added by headius (Charles Nutter) about 12 years ago. Updated almost 12 years ago.

Status:
Closed
Target version:
ruby -v:
2.0.0preview1
Backport:
[ruby-core:49619]

Description

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.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0