enum

Walter Bright newshound2 at digitalmars.com
Tue Apr 8 14:53:11 PDT 2014


On 4/8/2014 2:45 PM, Dicebot wrote:
> With current D type system this gives you pretty much nothing over `(uint
> newcolor)`. Still can have any integral value.

Not true. It gives:

1. overloading
2. symbolic debug info
3. cannot implicitly convert to Color
4. .min and .max properties
5. a scope for the member names
6. ddoc info


More information about the Digitalmars-d mailing list