Hmm ok, but can i easily make b become a again later ? I guess i would
just need to instanciate a new a... 

But would it not be faster to just change the class (which finally works
with a little tuning) ? 

I can't test right now but i will compare the two things... 

Le 2017-06-07 21:59, Denis Kudriashov a écrit :

> 2017-06-07 16:43 GMT+02:00 Steven Costiou <steven.cost...@kloum.io>:
> 
>> Yes but when you do that you loose all the states from "a" (at least the 
>> values). You have to do state migration management...
> 
> You just need extra step to copy all state from old object: 
> 
>> b := B new.
> 
>> b copyFrom: a.
> 
>> a becomeForward: b.
 

Reply via email to