logo       

Re: Overriding methods: msg#00093

lang.smalltalk.squeak.beginners

Subject: Re: Overriding methods

On Sun, 20 Jan 2008 07:50:57 -0800, Bert Freudenberg <bert@xxxxxxxxxxxxxxx> wrote:

On Jan 20, 2008, at 4:45 , Blake wrote:

For example, if I want to set up the "contractless" part of my object, I do so by overriding #basicNew, and then setting the values that allow the instance of the object to function.


Isn't that what #initialize is for?

Maybe I should be overriding #new instead of #basicNew, but I get the same dire warning for #new).

There should be no warning for #new. It's perfectly fine to override it.

Thank you!


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise