[MacRuby] #1391: macruby interpreter quits on 'quit' out of scope
MacRuby
ruby-noreply at macosforge.org
Fri Sep 23 08:27:13 PDT 2011
#1391: macruby interpreter quits on 'quit' out of scope
-----------------------------+----------------------------------------------
Reporter: macruby@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
-----------------------------+----------------------------------------------
Comment(by eloy.de.enige@…):
Yeah I’ve been pondering over this for a while. The solutions are to
either add the method to Kernel, akin to what Kouji’s patch does, or only
extend the objects that are are being used as context. E.g.:
{{{
module IRB
class Context
module ContextMethods
def quit
exit
end
end
def initialize(object, explicit_binding = nil)
object.extend(ContextMethods)
...
end
end
end
}}}
@Kouji What do you think is the best solution?
--
Ticket URL: <http://www.macruby.org/trac/ticket/1391#comment:2>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list