logo       

Re: Re: Overriding methods: msg#00090

lang.smalltalk.squeak.beginners

Subject: Re: Re: Overriding methods

> Zulq> In VW, where initialize isn't called by default, I do this all the time:
> Zulq> new
> Zulq> ^ self new initialize
>
> You mean "basicNew", unless you like infinite loops. :)

No infinite loops, but bad enough: you call #initialize twice for
every new object.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise