From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24174 invoked by alias); 31 Jul 2008 10:07:49 -0000 Received: (qmail 24075 invoked by uid 22791); 31 Jul 2008 10:07:47 -0000 X-Spam-Check-By: sourceware.org Received: from konig.cs.elte.hu (HELO konig.cs.elte.hu) (157.181.226.9) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 31 Jul 2008 10:07:28 +0000 Received: from lime.cs.elte.hu ([157.181.227.196] helo=[127.0.0.1]) by konig.cs.elte.hu with esmtp (Exim 4.54) id 1KOV46-0003lF-N3; Thu, 31 Jul 2008 12:07:23 +0200 Subject: Re: Move GDB to C++ ? From: =?ISO-8859-1?Q?Alp=E1r_J=FCttner?= To: Vladimir Prus Cc: gdb@sources.redhat.com In-Reply-To: References: <487658F7.1090508@earthlink.net> Content-Type: text/plain Date: Thu, 31 Jul 2008 14:37:00 -0000 Message-Id: <1217498852.4594.30.camel@piko.site> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1.1 Content-Transfer-Encoding: 7bit X-CS-Spam-Score: -4.4 (----) X-CS-Spam-Report: score=-4.4 required=5.0 tests=ALL_TRUSTED,BAYES_00 pts rule name description ---- ---------------------- ------------------------------------ -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% [score: 0.0000] 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/msg00349.txt.bz2 > 2. Not everybody knows C++, so if I'm hit by a bus, not everybody will be able to > adopt this module. (This is obviously more important for core parts than for MI). > I'm not sure if this aspect is critical -- I get the impression that even those > who object to C++ actually knows the language. Sometimes I feel the opposite. Most of the concerns appearing in this list are a kind of phobia against C++. Some of them was true in the past but not now, others are just a result of ignorance. A good example for that was the debate on xfree vs. delete. One of the goals of STL standard containers is that using them the programmer will almost never has to use 'delete'. There _are_ serious problems with C++, but if C++ is used properly, they will not be a problem in case of gdb. Also, C++ could have been designed much much better, but even this bad design provides major benefits over C for skilled developers. Best regards, Alpar