Using C++ in GCC is OK

Robert Dewar dewar@adacore.com
Mon May 31 12:14:00 GMT 2010


徐持恒 wrote:
> On Mon, May 31, 2010 at 6:41 PM, Robert Dewar <dewar@adacore.com> wrote:
> 
>> It's a pity to exclude namespaces, the advantage of breaking the
>> single-big-namespace model are evident.
> 
> Yes, the advantage of namespace is obvious.
> 
> But, I think namespace is just a syntax sugar. You can name your
> variables, functions, classes properly  to  "avoid" it.

All of OO is just syntactic sugar :-)
You can mimic anything in C, the point is that it obscures the
code, this kind of naming obscures the code, so it is better
avoided.



More information about the Gcc mailing list