in reply to what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
Brief answer (I'm heading to bed - really, I am): use a singleton object to hold your global configuration information. You can use new anywhere you want to, but after the first new (which creates the object), subsequent news simply return a reference to the singleton object.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
by Aristotle (Chancellor) on Feb 20, 2006 at 03:49 UTC | |
by leocharre (Priest) on Feb 22, 2006 at 20:37 UTC | |
by Aristotle (Chancellor) on Mar 03, 2006 at 20:20 UTC | |
by wazoox (Prior) on Mar 04, 2006 at 17:51 UTC | |
by Aristotle (Chancellor) on Mar 04, 2006 at 19:35 UTC | |
|