[MacRuby] #1291: Constants are erroneously found outside namespace
MacRuby
ruby-noreply at macosforge.org
Fri May 20 07:39:23 PDT 2011
#1291: Constants are erroneously found outside namespace
-------------------------------------+--------------------------------------
Reporter: eloy.de.enige@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: constlookup
-------------------------------------+--------------------------------------
MacRuby looks in the outer scope as well, when the user provided a full
path to the constant:
{{{
$ macruby -e 'module X; end; p X::String'
String
}}}
MRI doesn't do this:
{{{
$ ruby19 -e 'module X; end; p X::String'
-e:1:in `<main>': uninitialized constant X::String (NameError)
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1291>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list