manifest enum

Russell Lewis webmaster at villagersonline.com
Wed Jan 2 10:31:38 PST 2008


Have a look at this code:

   enum Named {
     uint foo = 1;
          bar = 2;
   };
   enum /* anonymous */ {
     uint fred  = 1;
          wilma = 2;
   };



In the above, unless I'm mistaken, typeof(bar) is uint, but 
typeof(wilma) is int.  Right?  So just naming a previously unnamed enum 
changes the types of the elements?

Ick.



More information about the Digitalmars-d mailing list