|
|
Darren New <dne### [at] sanrrcom> wrote:
> While generally true, I find that if the *meaning* of a variable is
> truly global, it can be made a global harmlessly.
There are a few cases where a global instance may be more practical than
harmful. In C++ in particular, though, I still prefer putting those inside
a namespace.
As I mentioned, I think std::cout is a good example.
--
- Warp
Post a reply to this message
|
|