Adding and removing methods

Brian Murphy-Dye brian.murphydye at mac.com
Tue Mar 16 22:19:37 UTC 2004


Thanks Ken, that's useful information. I'm a bit of a newbie myself, so 
I have been waiting until 3.7b before test driving the new system ;-)

Brian.

On Mar 16, 2004, at 3:09 PM, Ken Causey wrote:

> Yes. However, please note that starting with Squeak 3.7a Behaviour>>new
> does just exactly this and this particular example is no longer a good
> example of a custom new method.  At least not one that you would any
> longer need to actually use.
>
> Ken
>
> On Tue, 2004-03-16 at 16:01, Brian Murphy-Dye wrote:
>> Jules,
>>
>> As Lex states, it isn't an error to override new. The warning is just 
>> a
>> caution that improperly overriding it may prevent creations of new
>> instances of that class.
>>
>> A common reason to override new is to run an initialization routine
>> after instance creation:
>> new
>>      ^ self basicNew initialize
>>
>> Brian.
>
>




More information about the Squeak-dev mailing list