From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17437 invoked by alias); 14 Jul 2003 17:47:59 -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 17416 invoked from network); 14 Jul 2003 17:47:43 -0000 Received: from unknown (HELO CORPIT08.polycom.com) (216.52.12.3) by sources.redhat.com with SMTP; 14 Jul 2003 17:47:43 -0000 Received: by CORPIT08.polycom.com with Internet Mail Service (5.5.2653.19) id ; Mon, 14 Jul 2003 10:48:43 -0700 Message-ID: <5314B62255397440B12213B31CB2E9F113CD32@corpmail02> From: "Pavoori, Kiran" To: "'drow@mvista.com'" , "'gdb@sources.redhat.com'" Subject: RE: nested namespace and enum Date: Mon, 14 Jul 2003 17:47:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-SW-Source: 2003-07/txt/msg00157.txt.bz2 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