Re: Can use of singletons denote poor project design?
- From: Phlip <phlip2005@xxxxxxxxx>
- Date: Fri, 24 Feb 2006 23:17:26 GMT
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!!!
.
- References:
- Re: Can use of singletons denote poor project design?
- From: Daniel T.
- Re: Can use of singletons denote poor project design?
- Prev by Date: Re: Can use of singletons denote poor project design?
- Next by Date: Re: Can use of singletons denote poor project design?
- Previous by thread: Re: Can use of singletons denote poor project design?
- Next by thread: Re: Can use of singletons denote poor project design?
- Index(es):