logo       

Re: Overriding methods: msg#00086

lang.smalltalk.squeak.beginners

Subject: Re: Overriding methods

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.

- Bert -


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

News | FAQ | advertise