Boost logo

Boost :

From: Tobias Schwinger (tschwinger_at_[hidden])
Date: 2008-01-17 14:53:03

Peter Dimov wrote:
> Tobias Schwinger:
>>> Singletons *are* globals.
>> OK, that was a bit unclear. Let's put it this way:
>> It's not globals that are evil but accessing them all over the place
>> (or "coupling" to use the technical term that describes the problem).
> Coupling is why people use singletons. Were there no coupling, there would
> be no need to constrain the number of instances. The whole point of having a
> single instance it to allow modules to couple themselves to it, and be sure
> that they can communicate with other coupled modules via its state.

Thanks for throwing in the wise words, Peter.

With this terminology the moral of Anthony's experience report boils
down to:

    "Don't write too much code against an interface that will eventually



Boost list run by bdawes at, gregod at, cpdaniel at, john at