[Seaside] Changing object class

Philippe Marschall philippe.marschall at gmail.com
Wed Oct 3 12:29:48 UTC 2007

2007/10/3, Oleg Richards <orichards at mail.ru>:
> Hello Guys!
> Following question (maybe its a little bit "smalltalkish"):
> I have an object - an instance of RowNumeric class. I also have 2
> classes derived from this class. Can i change instance class from one
> derived to another without touching instance variables.

The question is not whether you can but whether you should. That can
be answered with no. Fix your design for example by use of delegation
for example by using the strategy pattern.


> So i have RowNumeric with all needed variables. And now i want to
> convert some numeric rows to total ones.
> Cheers, Oleg
> _______________________________________________
> Seaside mailing list
> Seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

More information about the Seaside mailing list