[MacRuby] #997: FIxnum.new gives a strange error on MacRuby
#997: FIxnum.new gives a strange error on MacRuby ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: minor | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- With Ruby 1.9.2 I am told that Fixnum does not have a method called #new, but MacRuby is telling me that I am passing the wrong number of arguments. irb(main):002:0> Fixnum.new ArgumentError: wrong number of arguments (0 for 0) -- Ticket URL: <http://www.macruby.org/trac/ticket/997> MacRuby <http://macruby.org/>
#997: FIxnum.new gives a strange error on MacRuby ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: #reduction ------------------------------------+--------------------------------------- Changes (by eloy.de.enige@…): * keywords: => #reduction * owner: lsansonetti@… => eloy.de.enige@… * milestone: => MacRuby 1.0 -- Ticket URL: <http://www.macruby.org/trac/ticket/997#comment:1> MacRuby <http://macruby.org/>
#997: FIxnum.new gives a strange error on MacRuby ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: #reduction ------------------------------------+--------------------------------------- Comment(by eloy.de.enige@…): It should not be possible to allocate a new instance. Same goes for Symbol, Integer, and Float. -- Ticket URL: <http://www.macruby.org/trac/ticket/997#comment:2> MacRuby <http://macruby.org/>
#997: Calling a method removed with rb_undef_method gives an ArgumentError instead of a NoMethodError ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: new Priority: minor | Milestone: MacRuby 1.0 Component: MacRuby | Keywords: #reduction ------------------------------------+--------------------------------------- Comment(by pthomson@…): This is showing up on all methods undefined with {{{ rb_undef_method }}} - try NilClass.new, FalseClass.new, TrueClass.new, and so on. In the VM source it looks like {{{ RoxorCore::undef_method }}} just uses class_replaceMethod to replace the old method with the {{{ rb_vm_undefined_imp }}} method. Laurent, since we can't remove methods (I think) with the ObjC runtime, could we replace the rb_vm_undefined_imp method with one that actually raises an undefined method exception instead of calling method_missing? Changing the title to reflect what's really going on. -- Ticket URL: <http://www.macruby.org/trac/ticket/997#comment:3> MacRuby <http://macruby.org/>
#997: Calling a method removed with rb_undef_method gives an ArgumentError instead of a NoMethodError ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: eloy.de.enige@… Type: defect | Status: closed Priority: minor | Milestone: MacRuby 0.11 Component: MacRuby | Resolution: fixed Keywords: #reduction | ------------------------------------+--------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed * milestone: MacRuby 1.0 => MacRuby 0.11 Comment: Should be fixed in https://github.com/MacRuby/MacRuby/commit/ba7056ca4684fdc99b4f4fa888e054658c... -- Ticket URL: <http://www.macruby.org/trac/ticket/997#comment:4> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby