> On 28 ene 2016, at 11:07 a.m., Denis Kudriashov <[email protected]> wrote: > > > 2016-01-28 10:43 GMT+01:00 Guillermo Polito <[email protected] > <mailto:[email protected]>>: > - You should not copy methods *just like that*. Methods are bounded (using > the last literal in the literal list) to the class that owns it, to be able > to resolve super sends. That is, every time there is a super send, the VM > checks to which class it belongs and continues the lookup in the superclass > of that class. > > But is not #addSelector:withMethod: should take care about it? I guess traits > installation not creates methods by compiling.
For traits. But I wouldn’t be sure for others :). This is a part of the system that need some love I think... > > > - Maybe it is writing to the sources file that doesn’t work from different > processes? > > It should be fixed by synchronising such operations. > Anyway copy approach should not touch source file at all. >
