Miscellaneous questions...

stéphane ducasse ducasse at iam.unibe.ch
Sat Sep 10 07:10:58 UTC 2005


On 9 sept. 05, at 23:02, Blake wrote:

> On Fri, 09 Sep 2005 12:05:58 -0700, stéphane ducasse  
> <ducasse at iam.unibe.ch> wrote:
>
>
>> Basically you use basicNew when you change new to raise an error.
>>
>
> Is that "when you change new, in order to discvoer errors" or "when  
> you change new so that new will signal errors"?
>
> I've been creating "new" methods for my classes, but I get dire  
> warnings every time I do it, not to mention when I delete a new  
> method.

I do not really understand why we have a warning for that since there  
are other dangerous methods on the class side such as redefining name  
that can
give you some pain too :)
But I meant redefining new to forbid its usage.

>
>
>> By the way new since 3.7 invokes automatically initialize.
>>
>
> Ah. So, one really just needs to override the initialize method?


Yes


More information about the Squeak-dev mailing list