PhobosWatch: manifest => enum
Walter Bright
newshound1 at digitalmars.com
Fri Dec 28 10:35:38 PST 2007
Sean Kelly wrote:
> The weird thing for me is that this will allow individual enums of any
> type but grouped enums of only numeric types.
The following will work:
enum
{
x = 3, // x is int
y = 4L, // y is long
}
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.
More information about the Digitalmars-d
mailing list