Re: Progress Report -> Refactoring Project - ( February 1 - 5 )
Posted by
Sean P. DeNigris on
Feb 12, 2021; 4:30pm
URL: https://forum.world.st/Progress-Report-Refactoring-Project-February-1-5-tp5126872p5126993.html
Wonderful to have progress on this important topic - thank you!
Sorry I haven't been following closely (maybe you addressed it already), but
pushing up instance variables has a dangerous limitation - instances lose
any data held in that var. I guess it's because it's deleted from the
subclass prior to adding to the superclass to avoid duplicating. One
solution would be to add a var to the superclass with a mangled name, copy
the data for all instances, remove the var from the subclass, and then
rename the mangled var.
-----
Cheers,
Sean
--
Sent from:
http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html
Cheers,
Sean