From: James Britt Date: 2006-07-28T16:21:45+09:00 Subject: Re: Howto ? :: Person is a customer Squeak Smalltalk wrote: > Hi, > > Beginner question probably but I do not know how to do it correctly. > > I will read informations from a file and create an object. > During my load I do not know if it is a employe or a customer so I > create a person object. > After the object is created I will know which type it is. > > After I know I want to change the type of my object. "Type"? What exactly do you mean by 'type'? (Check out the list archives for threads on duck typing and static typing to see how the notion of 'type' has been discussed. Might give you some ideas.) -- James Britt "I was born not knowing and have had only a little time to change that here and there." - Richard P. Feynman