[Newbies] Colors as class variables...

Sean Allen sean at monkeysnatchbanana.com
Mon Aug 4 17:41:31 UTC 2008


I'm wondering, the Color handling of different colors like blue etc  
where it dynamically creates class variables for a number of colors,
is that the standard idiom or as the code looks to be kind of old, is  
it no longer accepted practice.

If I needed to do something similar should I be following Color's  
example or instead creating singletons?

What's the best practice in this scenario? Are there smalltalk  
specific drawbacks to either approach that a beginning wouldn't
be readily aware of?



More information about the Beginners mailing list