This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Type name mangling
- To: ncm at cantrip dot org
- Subject: Re: Type name mangling
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Fri, 23 Oct 1998 09:44:05 +0100
- CC: egcs at cygnus dot com
- References: <E0zWJ8Z-0007U3-00@mult>
> The C library subset of the standard C++ library offers good
> examples. It defines a type, "struct tm". C programmers are used
> to forward-declaring struct tags to use in declaring functions --
> as in
>
> struct tm;
> void maraud(tm*);
I'm not sure I see the problem. While this style might be a C
tradition, C++ programmers have learned to provide #include statements
to access structure definitions - at least since ostream is a typedef.
So the problem really is with placing namespace std into <ctime>,
right? This is but one of the transition problems related to namespace
introduction, where the transition from <iostream.h> to <iostream> is
much more serious.
Users have come to accept that the ABI breaks between compiler
versions. I doubt they would accept a language change as serious as
the one you propose, if the current standard is not even completely
implemented by most compilers.
Regards,
Martin