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: Move GDB to C++ ?


Mark Kettenis wrote:
Date: Thu, 10 Jul 2008 11:46:15 -0700
From: Stan Shebs <stanshebs@earthlink.net>

As many know, there is a project afoot to investigate the recoding of GCC from C into C++. I believe the C++ idea was briefly touched on for GDB at the summit, although I don't remember much discussion. Anyway, this would be a good time to start thinking about it, and if people are generally in favor of the idea, we can start small by tweaking the sources to be C++-friendly, avoiding keywords and so forth; GCC has a new warning flag -Wcxx-compat that can help.

I think this is an absolutely retarded idea. C++ is a horrible
programming language.
Okay... so, uh, since C++ is basically a superset of C, presumably the horribleness you are thinking of relates to specific extensions. The basic idea of classes? Templates? Overloading? Exception handling? We would get to codify the set of C++ features that we will allow, certainly I'd never want to allow in patches that used arcane features of the language in twisted ways.

Stan


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