[MacRuby] #1291: Constants are erroneously found outside namespace
#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/>
#1291: Constants are erroneously found outside namespace -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: constlookup -------------------------------------+-------------------------------------- Comment(by eloy.de.enige@…): Another example: {{{ $ macruby -e 'p MacRuby::MacRuby::MacRuby::MacRuby::MacRuby::MacRuby' MacRuby }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1291#comment:1> MacRuby <http://macruby.org/>
#1291: Constants are erroneously found outside namespace -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: constlookup -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): <lol> -- Ticket URL: <http://www.macruby.org/trac/ticket/1291#comment:2> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby