Feature request: Attribute with which to enable the requirement of explicit-initialization of enum variables
Jonathan M Davis
jmdavisProg at gmx.com
Sun Jun 2 20:32:40 PDT 2013
On Monday, June 03, 2013 05:27:03 Diggory wrote:
> Sounds like the exact same feature as "@disable this()" but for
> enums, so perhaps it would be better to follow that syntax?
Except that disable this() is specifically for cases where a type _can't_ have
a default value and do what it's designed to do (like non-nullable
references). I don't think that that same logic applies to an enum.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list