enum

Dominikus Dittes Scherkl dominikus.scherkl at continental-corporation.com
Fri Apr 11 05:33:25 PDT 2014


On Friday, 11 April 2014 at 12:21:59 UTC, Steven Schveighoffer 
wrote:

> Idea just came to me. What about notifying the compiler which 
> enums can be used in final switches (and perhaps should be more 
> stringent in allowing math operations):
>
> final enum name { ... }
>
Yes, this is a good name for the new type.
"enum" and "final enum" make a better pair than "partial_enum" 
and "enum" as I have suggested.



More information about the Digitalmars-d mailing list