Bug #5204

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

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

[ruby-core:39022]
Status:Closed
Priority:High
Assignee:Koichi Sasada
Category:YARV
Target version:1.9.3
ruby -v:- Backport:

Description

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

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

History

#1 Updated by Shyouhei Urabe over 2 years ago

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

Hi ko1, what do you think?

#2 Updated by Koichi Sasada over 2 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 Updated by Koichi Sasada over 2 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 Updated by Shota Fukumori over 2 years ago

Backported to ruby19_3 at r33068.

Also available in: Atom PDF