Re: Can use of singletons denote poor project design?



Daniel T. wrote:

In C++, cout is a global and I write to it all the time. Unless you are
saying that cout is "bad design" I can't agree with your assessment
above. ;-)

Write a test case that inspects what a method wrote to cout.

;-)

(And about the "constant globals" thing, you might write _thru_ cout, but
you don't change it. I suspect that why manipulators like std::hex don't
stay turned on.)

--
Phlip
http://www.greencheese.org/ZeekLand <-- NOT a blog!!!
.