Project

General

Profile

Bug #5204

`defined?(@@foo) && @foo` may fail

Added by Magnus Holm over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
[ruby-core:39022]

Description

defined?(@@foo) doesn't use the correct cbase.

See https://github.com/ruby/ruby/pull/44 for test and patch.

History

#1 [ruby-core:39046] Updated by Shyouhei Urabe over 4 years ago

  • Category set to YARV
  • Status changed from Open to Assigned
  • Assignee set to Koichi Sasada
  • Priority changed from Normal to 5
  • Target version set to 1.9.3

Hi ko1, what do you think?

#2 [ruby-core:39076] Updated by Koichi Sasada over 4 years ago

  • ruby -v changed from ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0] to -

Hi,

Thank you Magnus for your reporting and a patch.
I apply it.

Yugui-san:
I think it can be applied to 1.9.3.

(2011/08/22 4:47), Shyouhei Urabe wrote:

defined?(@@foo) doesn't use the correct cbase.

See https://github.com/ruby/ruby/pull/44 for test and patch.

--
// SASADA Koichi at atdot dot net

#3 [ruby-core:39100] Updated by Koichi Sasada over 4 years ago

  • Status changed from Assigned to Closed

Fixed by r33045 on trunk. not applied to 1.9.3.
Yugui-san: Should I commit it?

#4 [ruby-core:39106] Updated by sorah Shota Fukumori over 4 years ago

Backported to ruby_1_9_3 at r33068.

Also available in: Atom PDF