Re: [MacRuby] #721: Compiled ruby files return incorrect values for __FILE__
#721: Compiled ruby files return incorrect values for __FILE__ ---------------------------------+------------------------------------------ Reporter: mred@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: ---------------------------------+------------------------------------------ Comment(by isaackearse@…): The output I get when running the last command "macruby main.rb" on the latest nightly is: {{{ __FILE__ = /Users/isaac/src/tmp/ruby2/test_file.rb /Users/isaac/src/tmp/ruby2/main.rb:2:in `<main>': no such file to load -- test file.rbo (LoadError) }}} Which I presume is the correct result, because I don't think .rbo files should not be loaded directly like this. From the macrubyc man page: "The MacRuby runtime will always pick .rbo files over .rb files upon calls to the require method". -- Ticket URL: <http://www.macruby.org/trac/ticket/721#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby