This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: GDB in C++


Quoting Mark Kettenis <mark.kettenis@xs4all.nl>:

> > Date: Sun, 1 Jul 2007 16:53:55 -0400
> > From: Daniel Jacobowitz <drow@false.org>

> > I'm in favor of switching to C++.  I'm not going to argue about it if
> > others disagree, but I'll offer to do most of the work if the
> > consensus is positive.
>
> My position on this subject has not been changed.  The more C++ code I
> see, the more convinced I get that the language should die.

I, too, have worked on convoluted and poorly written C++ programs.
That's partially poor programming practices, rather than the language.
Trying to use every feature in the language is not a good plan.

The features which recommend C++ are classes and the encapsulation
and data hiding which it offers.  Along with this comes inlining
and error checking.  A limited use of inheritance is useful.

Features which I would avoid are templates, overloading, and the STL.

I think that implementing the parts of GDB which attempt to emulate
classes in C++ would have benefits in clarity and performance.

--
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077


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