delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/20/01:06:26

Message-ID: <20020520050514.50800.qmail@web11302.mail.yahoo.com>
Date: Sun, 19 May 2002 22:05:14 -0700 (PDT)
From: Pedro Izecksohn <izecksohn AT yahoo DOT com>
Subject: enum
To: djgpp AT delorie DOT com
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

   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 };

int main () {
something first;
otherthing second;
first=a;
second=a;
return 0;
}


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019