From: Christopher Kohlhoff (chris_at_[hidden])
Date: 2005-12-19 19:35:04
--- Peter Dimov <pdimov_at_[hidden]> wrote:
> You should dislike singletons because they are global
> The problem with the above apporach is that most code will end
> up using the global demuxer because this is the path of least
> resistance. When it turns out that the code needs to be
> refactored to use a specific demuxer, the programmers would
> need to go over it with a fine-toothed comb and replace every
> implicit reference to the global demuxer with an explicit
> demuxer reference, passing that reference wherever necessary.
> It'd be a pain, and it'd be easy to miss some. Not to mention
> that the code that implicitly uses the global demuxer may be
> in a library for which the source is not available.
> So yes, the easy case will be easier, but the hard case will
> be harder.
Good points. Scratch that idea.
Boost list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk