This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Converting GCC to compilation with C++


On Jul 13, 2004, at 9:32 AM, Joe Buck wrote:

This discussion is probably moot because we aren't in danger of a
C++ rewrite in the near term.  However ...

Gabriel Dos Reis wrote:
Templates, overloading and multiple inheritance work for me and
all other programmers I know of or have met.

On Tue, Jul 13, 2004 at 10:01:47AM -0400, Robert Dewar wrote:
Well I must say I entirely agree with David Korn that there are
real risks, and I find it worrisome that Gaby does not see them.

Well-architected C++ programs are lower-risk than C programs, and
can be much more robust, because we can come much closer to the
Write Things Once ideal than we can in C, that is, that design
decisions are almost always reflected in one localized place in
the source code, rather than scattered all over the program.
Architectural decisions that would result in unmaintainable C
code can result in highly maintainable C++ code (because, for
example, destructors can assure that resources are always freed).
Data structures can be completely changed with far less disturbance to the
code that accesses those data structures.

Isn't this issue academic?


I have my own opinions about the implementation language for gcc.
Specifically: I think there are several better choices than C, and I
think that C++ is one of them.  But Mark's report from the Steering
Committee meeting is that switching to C++ would require a major
political fight.  I don't see it happening right now.

--Matt


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]