[Newbies] constants

K. K. Subramaniam subbukk at gmail.com
Mon Sep 29 04:32:10 UTC 2008


On Sunday 28 Sep 2008 7:26:43 pm Mark Volkmann wrote:
> I think my main issue is scoping. I want to define a constant that is  
> associated with a class to avoid name conflicts.
See classes Color, Cursor or Float for examples of scoped constants:
   Color red
   Cursor wait
   Float pi

For constants that should be exposed to a few (but not all) classes, use pool 
dictionaries.

HTH .. Subbu


More information about the Beginners mailing list