2012/6/16 Conrad Taylor <[email protected]>:
> Sent from my iPhone
>
> On Jun 15, 2012, at 12:06 PM, Stéphane Ducasse <[email protected]>
> wrote:
>
>> why do you need an automatic new method?
>> Because by default
>> new invoke initialize
>>
>> and it works well.
>>
>
> Stéphane, I have been using VW Smalltalk and it creates new classes ,by
> default, with a #new method on the class side and a #initialize method on the
> instance side.
>
Yes, true in VW, but unecessary in squeak/pharo, this is in
Behavior>>new
^ self basicNew initialize
Also, a generally good rule is to remember to send super initialize
(very few exceptions).
Nicolas
>>
>>
>> On Jun 15, 2012, at 4:09 PM, Conrad Taylor wrote:
>>
>>> Hi, is there an automated setting which creates default new and initialize
>>> methods for a new class? BTW, I'm using Pharo 2.0-one-click. Well, I must
>>> go and thanks in advance.
>>>
>>> --
>>>
>>> Think different and code well,
>>>
>>> -Conrad
>>>
>>>
>>
>>
>