https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112011-08-22T20:47:17ZRuby Issue Tracking SystemRuby master - Bug #5204: `defined?(@@foo) && @foo` may failhttps://bugs.ruby-lang.org/issues/5204?journal_id=203532011-08-22T20:47:17Zshyouhei (Shyouhei Urabe)shyouhei@ruby-lang.org
<ul><li><strong>Category</strong> set to <i>YARV</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> set to <i>ko1 (Koichi Sasada)</i></li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>5</i></li><li><strong>Target version</strong> set to <i>1.9.3</i></li></ul><p>Hi ko1, what do you think?</p> Ruby master - Bug #5204: `defined?(@@foo) && @foo` may failhttps://bugs.ruby-lang.org/issues/5204?journal_id=203732011-08-24T09:53:08Zko1 (Koichi Sasada)
<ul><li><strong>ruby -v</strong> changed from <i>ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.2.0]</i> to <i>-</i></li></ul><p>Hi,</p>
<p>Thank you Magnus for your reporting and a patch.<br>
I apply it.</p>
<p>Yugui-san:<br>
I think it can be applied to 1.9.3.</p>
<p>(2011/08/22 4:47), Shyouhei Urabe wrote:</p>
<blockquote>
<p>defined?(@@foo) doesn't use the correct cbase.</p>
<p>See <a href="https://github.com/ruby/ruby/pull/44" class="external">https://github.com/ruby/ruby/pull/44</a> for test and patch.</p>
</blockquote>
<p>--<br>
// SASADA Koichi at atdot dot net</p> Ruby master - Bug #5204: `defined?(@@foo) && @foo` may failhttps://bugs.ruby-lang.org/issues/5204?journal_id=204032011-08-25T08:16:47Zko1 (Koichi Sasada)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li></ul><p>Fixed by r33045 on trunk. not applied to 1.9.3.<br>
Yugui-san: Should I commit it?</p> Ruby master - Bug #5204: `defined?(@@foo) && @foo` may failhttps://bugs.ruby-lang.org/issues/5204?journal_id=204092011-08-25T13:14:59Zsorah (Sorah Fukumori)her@sorah.jp
<ul></ul><p>Backported to ruby_1_9_3 at r33068.</p>