[Newbies] class method #initializeClass vs. #initialize

Bert Freudenberg bert at freudenbergs.de
Sun Jan 8 13:32:51 UTC 2012


On 08.01.2012, at 06:21, Ben Coman wrote:

> I have come across a class method initializeClass with a comment "Do not rename to #initialize."
> Is that a generic concern ?

It is pretty unusual.

> This particular case is from BaseUnit >> initializeClass from http://www.squeaksource.com/Units.html


Generally you would name this method "initialize". This ensures it is automatically evaluated when loading the class.

- Bert -




More information about the Beginners mailing list