[MacRuby] #384: autoload is not working within module and class
#384: autoload is not working within module and class ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: critical | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: ----------------------------+----------------------------------------------- {{{ $ cat foo.rb module Bar class Foo end end $ macruby -e 'module Bar; autoload :Foo, "foo.rb"; class Baz; p Foo; end; end' core:in `const_missing:': uninitialized constant Bar::Baz::Foo (NameError) from -e:1:in `<main>' $ ruby -e 'module Bar; autoload :Foo, "foo.rb"; class Baz; p Foo; end; end' Bar::Foo $ ruby1.9 -e 'module Bar; autoload :Foo, "foo.rb"; class Baz; p Foo; end; end' Bar::Foo $ macruby -e 'module Bar; require "foo.rb"; class Baz; p Foo; end; end' Bar::Foo }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/384> MacRuby <http://macruby.org/>
#384: autoload is not working within module and class ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: critical | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | ----------------------------+----------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Thanks for the report, it should be fixed in r2795. -- Ticket URL: <http://www.macruby.org/trac/ticket/384#comment:1> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby