|
![](/i/fill.gif) |
Maybe in C, in C++ your types and constants should have the scope of the
class or namespace they are defined in, thus only cluttering that namespace,
if you can even consider that clutter.
Mike
"Thorsten Froehlich" <tho### [at] trf de> wrote in message
news:3df8585a$1@news.povray.org...
> In article <3df7e833@news.povray.org> , "Apache"
> <apa### [at] yahoo com> wrote:
>
> > Peopla at university taught me this very thing: put types and constants
in
> > header file.
>
> Which is completely wrong: Only put types and constants used in more than
> one source file into a header file. Otherwise you just clutter the
> namespace, regardless of the language being used.
>
> Thorsten
>
> ____________________________________________________
> Thorsten Froehlich, Duisburg, Germany
> e-mail: tho### [at] trf de
>
> Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |