[MacRuby-devel] [MacRuby] #571: #respond_to? should return false for unimplemented methods
MacRuby
ruby-noreply at macosforge.org
Mon Feb 1 01:25:56 PST 2010
#571: #respond_to? should return false for unimplemented methods
---------------------------------+------------------------------------------
Reporter: honglilai@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
---------------------------------+------------------------------------------
Comment(by maxime.curioni@…):
Replying to [comment:1 lsansonetti@…]:
> Let's follow MRI here and register a common implementation symbol for
unimplemented methods, then refresh the UNAVAILABLE_IMP macro to also
check for this symbol.
I followed Laurent's recommendation and added the test (whether the
current method is equal to rb_f_notimplement) to the UNAVAILABLE_IMP
macro.
To test it, I updated spec/frozen/core/process/fork_spec.rb, to skip the
old spec. I am new to MacRuby so I don't know if changing specs in the
frozen directory or specifying specs just for our implementation is the
way to go. Please share any criticism/comment you may about my patch.
--
Ticket URL: <http://www.macruby.org/trac/ticket/571#comment:2>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list