POV-Ray : Newsgroups : povray.off-topic : C++ structuring help.... : Re: C++ structuring help.... Server Time
10 Oct 2024 17:18:52 EDT (-0400)
  Re: C++ structuring help....  
From: Warp
Date: 22 Mar 2008 13:50:26
Message: <47e554f2@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.