PhobosWatch: manifest => enum

Sean Kelly sean at f4.ca
Fri Dec 28 05:21:24 PST 2007


Sean Kelly wrote:
> Walter Bright wrote:
>>
>> I found the "use an alias when declaring one constant" and "use an 
>> enum when declaring more than one constant" to be difficult to 
>> justify. It's like saying arrays with only one element should not be 
>> allowed.
> 
> The weird thing for me is that this will allow individual enums of any 
> type but grouped enums of only numeric types.

err... make that unnamed and named.  One could argue that support for 
unnamed enums is simply for ease of porting from C rather than because 
it's a feature that really makes sense in a new language.  So making it 
even more entrenched is undesirable.  But we need the feature and if 
"enum" is it then...


Sean



More information about the Digitalmars-d mailing list