[Newbies] Howto initialize class variables

Alex Schenkman alex at schenkman.info
Sat Mar 20 08:46:23 UTC 2010


Hi List!

I'm playing with class variables. How should I initialize them?
I've tried with the class method initialize but it does not do the job.

Pirulo class>>initialize
    super initialize.
    myClassVar := Dictionary new at: 'one' put: 1.


Thanks in advance!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20100320/a6e7ba43/attachment.htm


More information about the Beginners mailing list