[MacRuby-devel] [MacRuby] #182: The constant lookup in MacRuby does not behave correctly
MacRuby
ruby-noreply at macosforge.org
Fri Dec 19 16:07:16 PST 2008
#182: The constant lookup in MacRuby does not behave correctly
----------------------------------------+-----------------------------------
Reporter: vincent.isambart@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
----------------------------------------+-----------------------------------
MacRuby:
{{{
>> class A
>> class B
>> end
>> end
=> nil
>> B
=> A::B
>>
>> A::B::B::B
=> A::B
>>
}}}
Ruby 1.9:
{{{
irb(main):001:0> class A
irb(main):002:1> class B
irb(main):003:2> end
irb(main):004:1> end
=> nil
irb(main):005:0> B
NameError: uninitialized constant B
from (irb):5
from /usr/local/bin/irb-1.9:12:in `<main>'
irb(main):006:0>
irb(main):014:0> A::B::B::B
NameError: uninitialized constant A::B::B
from (irb):14
from /usr/local/bin/irb-1.9:12:in `<main>'
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/182>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list