From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9519 invoked by alias); 15 Jul 2003 03:39:29 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 9508 invoked from network); 15 Jul 2003 03:39:27 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 15 Jul 2003 03:39:27 -0000 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19cGes-00055V-00; Mon, 14 Jul 2003 23:39:18 -0400 Date: Tue, 15 Jul 2003 03:39:00 -0000 From: Daniel Jacobowitz To: "Pavoori, Kiran" Cc: "'gdb@sources.redhat.com'" Subject: Re: nested namespace and enum Message-ID: <20030715033918.GA19528@nevyn.them.org> Mail-Followup-To: "Pavoori, Kiran" , "'gdb@sources.redhat.com'" References: <5314B62255397440B12213B31CB2E9F113CD32@corpmail02> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5314B62255397440B12213B31CB2E9F113CD32@corpmail02> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-07/txt/msg00158.txt.bz2 On Mon, Jul 14, 2003 at 10:46:19AM -0700, Pavoori, Kiran wrote: > Would like to hear an opinion on this declaration. > > namespace N > { > class C > { > public: > ~C(){} > C() {} > typedef enum > { > EV_X, > EV_Y, > EV_Z > } Events; > }; > } > > > Now looking at the above declaration I would access the enum EV_X as > follows: > > N::C::EV_X > > Is this an acceptable declaration? > Please comment when you get a chance, thank-you > Kiran This does not work in GDB right now, and will not for at least another release. It may also require some compiler changes. Your C++ is right though. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer