Global variable ?

Off the top of my head, I think you add a Module and make the dictionary a private property of the module. Add methods to that module to expose the functionality you desire.

Hi, i have a few global constant for colour that i used for various things. How to i change those dictionary??

or do i really need to do anything with the global constant??

what is the advantage of hiding the dictionary??

@Richard: with a public dictionary every class could delete data in your dictionary. With a controlling module you could allow only changes and additions. Just as example.

i see what you mean now…