S
Steven T. Hatton
Phlip wrote:
Have you ever inadvertently defined a header guard to be the same value as
one used by a 3rd party library? Ever had a macro collision between two
libraries? And then there are, of course, the more straight forward
problems such as changing the name of a source file, answering the phone,
and creating a new source file with the same name as the original.
There are places where I've seen the CPP used effectively to do things in a
better way than any I can come up with. For example:
http://websvn.kde.org/trunk/KDE/kdevelop/languages/cpp/parser/ast.h?rev=467420&view=markup
Anyone who learns only part of a language, and its styles and idioms, will
have the potential to abuse some feature. You could say the same thing
about 'if' statements. They have a great potential for abuse. Yet you
don't often read posts here bragging "I know better than to abuse 'if'
statements!!"
Have you ever inadvertently defined a header guard to be the same value as
one used by a 3rd party library? Ever had a macro collision between two
libraries? And then there are, of course, the more straight forward
problems such as changing the name of a source file, answering the phone,
and creating a new source file with the same name as the original.
There are places where I've seen the CPP used effectively to do things in a
better way than any I can come up with. For example:
http://websvn.kde.org/trunk/KDE/kdevelop/languages/cpp/parser/ast.h?rev=467420&view=markup