[MacRuby] #670: A more idiomatic rb_main for MacRuby applications
MacRuby
ruby-noreply at macosforge.org
Sun Oct 10 15:06:17 PDT 2010
#670: A more idiomatic rb_main for MacRuby applications
---------------------------------+------------------------------------------
Reporter: dev@… | Owner: lsansonetti@…
Type: enhancement | Status: new
Priority: trivial | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by dev@…):
It seems I was wrong in expecting require not to require the main file
again:
While `require` won't reload a file that's already been required, rb_main
is never "required": as the main file, it's just "run", hence not in `$"`,
and therefore prone to be loaded again by `require`.
So I'm cleverly ditching rb_main from the require list again. Maybe too
cleverly for this patch to still make sense.
--
Ticket URL: <http://www.macruby.org/trac/ticket/670#comment:1>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list