[MacRuby] #562: Including a module into class Class or class Module
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- I saw that when you open class Class and define a method, it's automatically defined as a class method on NSObject. My preliminary patch does this for both Class and Module. However, as the test in #3300 shows, using the two behaviors together still leads to a problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/562> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Description changed by eloy.de.enige@…: Old description:
I saw that when you open class Class and define a method, it's automatically defined as a class method on NSObject. My preliminary patch does this for both Class and Module. However, as the test in #3300 shows, using the two behaviors together still leads to a problem.
New description: I saw that when you open class Class and define a method, it's automatically defined as a class method on NSObject. This does not happen when you include a module into class Class. Or class Module for that matter. My preliminary patch does this for both Class and Module. However, as the test in #3300 shows, using the two behaviors together still leads to a problem. -- -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:1> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Comment(by eloy.de.enige@…): As a note, the current patch fixes tickets #265 and #371. -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:2> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Comment(by james@…): Is this resolved or is it still awaiting a fix for the problem alluded to in the test in #3300 ? This ticket doesn't seem to exist. Thanks, James. -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:4> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Comment(by lsansonetti@…): Looks like this bug, #265, #371 and #709 are all related. The patch eloy wrote has not been merged yet AFAIK. I will work on this then verify if each ticket can be closed. (I am not sure why you refer to #3300. We don't have that many tickets.) -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:5> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Comment(by james@…): Hi Laurent. That'd be great. #3300 is mentioned in the 2nd paragraph of the description on this ticket - "However, as the test in #3300 shows, using the two behaviors together still leads to a problem". Thanks, James. -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:6> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Comment(by eloy.de.enige@…): Heh, my bad, that had to be r3300 :) -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:7> MacRuby <http://macruby.org/>
#562: Including a module into class Class or class Module -------------------------------------+-------------------------------------- Reporter: eloy.de.enige@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: mocha -------------------------------------+-------------------------------------- Comment(by james@…): Aha. I don't know why I didn't think of that! -- Ticket URL: <http://www.macruby.org/trac/ticket/562#comment:8> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby