Quote of the week
Posted Dec 10, 2004 6:58 UTC (Fri) by mbp
In reply to: Quote of the week
Parent article: Quote of the week
Ted's response has nothing to do with changing the global namespace or default builtin operations. That statement can cause trouble if any of a, b or c are of types defined to behave in a surprising way. And while it is possible to write surprising code in any language, it is common (almost unavoidable) in C++ to write code which can have surprising interactions. It is generally a reasonable assumption in C that there are no macros that will mess with a line; it is not a reasonable assumption in C++ that there are no conversion or copy constructors or operators.
C++ has more magic, therefore it is harder to look at code and see what it does without examining all of the definitions which may be in force.
to post comments)