pharo icon indicating copy to clipboard operation
pharo copied to clipboard

[Refactoring] conceptual limit/bug of addMethod refactoring

Open Ducasse opened this issue 1 year ago • 2 comments

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.

Ducasse avatar Oct 08 '24 19:10 Ducasse