in reply to Re^10: what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
in thread what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
Well you're right I wasn't very clear :) You may of course change a singleton, but changes to it are obviously global to your app. If that's not what you want, then you don't want a singleton.
Of course you can share globals across packages.
Yeah sure, but in an OO-environment that means you're breaking encapsulation. Singletons don't.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^12: what is a propper way to make a chunk of data accessible to all my packages for retrieval and modification ?
by adrianh (Chancellor) on Mar 09, 2006 at 10:50 UTC | |
by wazoox (Prior) on Mar 09, 2006 at 15:04 UTC | |
by adrianh (Chancellor) on Mar 10, 2006 at 14:22 UTC | |
by wazoox (Prior) on Mar 10, 2006 at 15:46 UTC |