[squeak-dev] Class variables

Bergel, Alexandre bergel at iam.unibe.ch
Mon Jul 14 13:45:14 UTC 2008


Class variables are accessible within the instance and class sides.
class instance variables are accessible only within the class instance  
side.

I essentially use class instance variables to keep track of created  
instances (e.g., singleton pattern).

Cheers,
Alexandre

On 14 Jul 2008, at 15:27, Martin Beck wrote:

> Hi list,
>
> can anyone please explain the difference between class variables at  
> the
> instance side in the class browser and instance variables at the class
> side (thus of the metaclass) to me? And which of them is the  
> preferred one?
>
> Regards,
> Martin
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.








More information about the Squeak-dev mailing list