2016-01-28 10:43 GMT+01:00 Guillermo Polito <[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.


>
> -  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.

Reply via email to