Guru-nizing printing of types

Gabriel Dos_Reis codesourcery.com@korrigan.inria.fr
Tue Nov 30 23:59:00 GMT 1999


Andrew Haley <aph@pasanda.cygnus.co.uk> writes:

| > From: Gabriel Dos_Reis <gdr@codesorucery.com>
| > Organization: CodeSourcery, LLC
| > Date: 15 Nov 1999 18:22:32 +0100
| > 
| > Jason Merrill <jason@cygnus.com> writes:
| > 
| > | I still feel that this is not a C++-specific question; we should be
| > | consistent with the C frontend and the GNU Coding Standards on this issue.
| > | Pointers are the same in C and C++.
| > 
| > I do agree with you that pointers are conceptually the same in C and
| > C++.  Nevertheless, I strongly feel that we should not depart from the 
| > C++ community pratices.  
| 
| Sometimes a single header file is included by both C and C++.  What do
| we do then?

Apply C++ printing rules when the program happened to be compiled with 
g++ -- of cource there will a suitable switch to that effect.

A programmer who includes a C header file in a C++ program is
certainly aware  of C++ practices.

-- Gaby



More information about the Gcc-patches mailing list