logo       

Re: Overriding methods: msg#00094

lang.smalltalk.squeak.beginners

Subject: Re: Overriding methods

In response to "(I guess it's possible in this way to create an object that destabilizes the system?)", I was demonstrating how one might introduce instability. I would normally send super new.

Randal L. Schwartz wrote:
"Zulq" == Zulq Alam <me@xxxxxxxx> writes:

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. :)



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

News | FAQ | advertise