From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14057 invoked by alias); 14 Jul 2008 08:49:54 -0000 Received: (qmail 14041 invoked by uid 22791); 14 Jul 2008 08:49:53 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 14 Jul 2008 08:49:33 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KIJkP-0005EO-2U for gdb@sources.redhat.com; Mon, 14 Jul 2008 08:49:29 +0000 Received: from gate.lvk.cs.msu.su ([158.250.17.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 08:49:29 +0000 Received: from vladimir by gate.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 14 Jul 2008 08:49:29 +0000 To: gdb@sources.redhat.com From: Vladimir Prus Subject: Re: Move GDB to C++ ? Date: Mon, 14 Jul 2008 08:49:00 -0000 Message-ID: References: <487658F7.1090508@earthlink.net> <18554.39512.617681.231052@kahikatea.snap.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.10.9 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/msg00150.txt.bz2 Nick Roberts wrote: > > Tom> * Templates are used in at least one place -- vec.h. > > > > I found another gdb-specific example of this: observers. A given > > observer is essentially an instance of a template class. > > From my point of view, another benefit of using C++, is presumably that > variable objects could be represented as linked lists, rather than use the > current vector API which, for reasons I've already given, I think is > unsuitable. Without getting into that discussion again, it's clear that either std::vector, or std::list, or std::deque, are much better than anything implementable in C. - Volodya