[MacRuby] #218: including a module which defines functions can mask functions of the same name in the including class
#218: including a module which defines functions can mask functions of the same name in the including class -------------------------------+-------------------------------------------- Reporter: celtic@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Simple explanation: classes A and B both define methods `foo', as does module M. A includes M before defining its own `foo', whereas B includes M afterwards. Given that A and B both call `super' in their `foo', it turns out that only A's `foo' ends up calling M's, whereas B's does not. Conclusion: including the module which defines the method after defining ones own causes it to be lost. I believe this is causes the problem first referred to in #215. Attaching a test case which verifies this behaviour. -- Ticket URL: <http://www.macruby.org/trac/ticket/218> MacRuby <http://macruby.org/>
#218: including a module which defines functions can mask functions of the same name in the including class -------------------------------+-------------------------------------------- Reporter: celtic@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Comment(by celtic@…): I've been trying to git bisect this with little success (I think it's my fault); in the meantime, I believe objc.m's rb_objc_register_ruby_method likely has the issue. Will look further. -- Ticket URL: <http://www.macruby.org/trac/ticket/218#comment:1> MacRuby <http://macruby.org/>
#218: including a module which defines functions can mask functions of the same name in the including class -------------------------------+-------------------------------------------- Reporter: celtic@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Keywords: -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * milestone: => MacRuby 0.5 Comment: Sorry for the late response. Could you try this with trunk? I believe it might work. -- Ticket URL: <http://www.macruby.org/trac/ticket/218#comment:2> MacRuby <http://macruby.org/>
#218: including a module which defines functions can mask functions of the same name in the including class -------------------------------+-------------------------------------------- Reporter: celtic@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.5 Component: MacRuby | Resolution: fixed Keywords: | -------------------------------+-------------------------------------------- Changes (by lsansonetti@…): * status: new => closed * resolution: => fixed Comment: Closing. -- Ticket URL: <http://www.macruby.org/trac/ticket/218#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby