[Q] initialization pattern

stéphane ducasse ducasse at iam.unibe.ch
Sun May 16 17:20:11 UTC 2004


This is interesting that you found that


>> Seems to me a mistake because new: should call also initialize or may
>> be initialize:
>
> That is quite possible, I found that on 2003-09-09
> you posted a change set that contained (among
> other things) this definition:
>
> Behavior methodsFor: 'instance creation'
> new: sizeRequested
>  "Answer an initialized instance of this class with the number of 
> indexable
>  variables specified by the argument, sizeRequested."
>
>  ^ (self basicNew: sizeRequested) initialize
>
> I still could not find out why this got lost. I will try to
> find out but perhaps a KCP fellow has a quick
> answer?
>
> Greetings, Boris
>
>




More information about the Squeak-dev mailing list