PhobosWatch: manifest => enum

Walter Bright newshound1 at digitalmars.com
Fri Dec 28 12:31:24 PST 2007


Jason House wrote:
> Walter Bright wrote:
>> The idea is that for anonymous enums, there is no type for the
>> enumeration as a whole. Therefore, each member of the enumeration can
>> have a different type.
> 
> ... so annonymous enums have no type for the enumeration as a whole, but
> named enums will?

Yes. That is the way enums already work.


> Can named enums have a type other than int?

Yes. This has always been possible:

enum Foo : long { X, Y }



More information about the Digitalmars-d mailing list