Ways of new
Anthony Adachi
adachipro at yahoo.com
Thu May 8 17:38:36 UTC 2003
Richard A. O'Keefe wrote:
> The choice between
> new
> ^super new <<other stuff>>
> and
> new
> ^self basicNew <<other stuff>>
>
> is really quite simple.
Thank you very much Richard for your excellent
explanation.
This is exactly the kind of explanation of reasons I
was hoping for.
That, in addition to, an explanation of "there simply
may be no particularly good reason at all why one made
a certain choice" satisfies my curiosity.
> you can completely avoid the multiple
initialisation problem thus:
>
> GrandDad>>new ^super new initialiseGrandDad
> Pater >>new ^super new initialisePater
> Fauntkin>>new ^super new initialiseFauntkin
Thanks for the tip on how to avoid having to rely on
basicNew when one wishes to ensure the multiple
initialisation problem doesn't take place.
Take care,
Anthony
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
More information about the Squeak-dev
mailing list
|