pharo
pharo copied to clipboard
[Refactoring] conceptual limit/bug of addMethod refactoring
Imagine the following situation
A >> x ^ 33
B is empty
C >> x ^ super x + 10
Now we add a simple method x in B. So we are changing behavior if its implementation is different from the one of A! Bingo
Even funnier
A >> x ^ 1
B >> x ^ super x + 12
C is empty
D >> x ^ super x + 10
Now we add a simple method to C C >> x ^ super x + 12.
We are changing the behavior of D >> x.