Date: Mon, 20 May 2002 10:21:30 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Pedro Izecksohn cc: djgpp AT delorie DOT com Subject: Re: enum In-Reply-To: <20020520050514.50800.qmail@web11302.mail.yahoo.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 19 May 2002, Pedro Izecksohn wrote: > Wouldn't be great if it was possible to compile the code > bellow ? I know the compiler's problem with it, but what is > the logical problem ? Hasn't English some words that they > have differents meanings in different phrases ? > > #define something enum something > something { > a,b,c,d,e }; > > #define otherthing enum otherthing > otherthing { > a,s,d,f,g }; AFAIK, the C Standard rules that all the enumeration constants in the same file share the same namespace. So the Standard disallows what you want to do.