PhobosWatch: manifest => enum

John Reimer terminal.node at gmail.com
Fri Dec 28 11:18:37 PST 2007


Walter Bright wrote:
> Steven Schveighoffer wrote:
>>> As opposed to a minor extension to enums.
>>
>> Um... this is not minor :)  This is a complete redefinition of what 
>> enum means.
> 
> enum is already used to declare arbitrary constants *that do not have an 
> enum type* in C, C++, and D.


And, several times this argument has been rebuffed:

The reason people do this in D is usually under duress because of 
problems using "const".  It wasn't done because it was a preferred way 
nor because "enum" was something that clearly indicated its purpose.

Laying claim to this argument as a reasonable promotion of "enum" is not 
the best approach to proving to the D group that "enum" was an optimal 
choice.

Like I said, it will work. But you probably already know that it will be 
accepted quite begrudgingly.

Just wanted to point that out again. :)

-JJR



More information about the Digitalmars-d mailing list