From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30786 invoked by alias); 10 Jul 2008 20:01:46 -0000 Received: (qmail 30775 invoked by uid 22791); 10 Jul 2008 20:01:46 -0000 X-Spam-Check-By: sourceware.org Received: from elasmtp-curtail.atl.sa.earthlink.net (HELO elasmtp-curtail.atl.sa.earthlink.net) (209.86.89.64) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 10 Jul 2008 20:01:15 +0000 Received: from [68.108.140.244] (helo=macbook-2.local) by elasmtp-curtail.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1KH2KH-0006v6-Dp; Thu, 10 Jul 2008 16:01:13 -0400 Message-ID: <48766A88.1050402@earthlink.net> Date: Thu, 10 Jul 2008 20:01:00 -0000 From: Stan Shebs User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 To: Mark Kettenis CC: gdb@sourceware.org Subject: Re: Move GDB to C++ ? References: <487658F7.1090508@earthlink.net> <200807101901.m6AJ1UMQ007185@brahms.sibelius.xs4all.nl> In-Reply-To: <200807101901.m6AJ1UMQ007185@brahms.sibelius.xs4all.nl> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: ae6f8838ff913eba0cc1426638a40ef67e972de0d01da94075c294b0c31e6e6fde4653a555b002f7350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-07/txt/msg00086.txt.bz2 Mark Kettenis wrote: >> Date: Thu, 10 Jul 2008 11:46:15 -0700 >> From: Stan Shebs >> >> 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