Guru-nizing printing of types
Gabriel Dos_Reis
gdr@codesorucery.com
Mon Nov 15 09:23:00 GMT 1999
Jason Merrill <jason@cygnus.com> writes:
| >>>>> Mark Mitchell <mark@codesourcery.com> writes:
|
| Carlo> Anyway, if you don't want to use the `int const*' style as
| Carlo> default then there isn't much I can do. But,... how about
| Carlo> using the `int* func(const char*);' style as default
| Carlo> instead of `int *func(const char *)'?
|
| > I agree that's a more modern style, used by most C++ programmers, and
| > perhaps appropriate. If Jason doesn't object, I would approve a patch
| > that changed just that.
|
| 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.
-- Gaby
More information about the Gcc-patches
mailing list