Colors as class variables...

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Colors as class variables...

SeanTAllen
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?

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners