dz0004455 at gmail.com
Thu Jan 3 15:22:02 UTC 2008
ok, Thanks! that clears it up a lot!!
On 1/3/08, Herbert König <herbertkoenig at gmx.net> wrote:
> Hello David,
> DZ> One more question...How do I know when i need to use a class
> DZ> method instead of an instance method?
> the obvious reply is: If you want to talk to the class you need a
> message implemented as a class side method. Examples:
> a := Float pi
> asks the class Float to return an instance of Float with the value of
> pi. So you'll find the method pi implemented on the class side of
> then a:= a + 3.0 talks to an instance of Float so you'll find +
> implemented on the instance side of Float (or on of its superclasses).
> Herbert mailto:herbertkoenig at gmx.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev