UDAs on Enum Members: Does it require a DIP?

Michael V. Franklin slavo5150 at yahoo.com
Mon Nov 20 03:34:46 UTC 2017


On Sunday, 19 November 2017 at 15:57:58 UTC, Jonathan M Davis 
wrote:

> It isn't specific to UDAs. You can't put _any_ attributes on 
> enums - including something like deprecated (though to be fair, 
> not many attributes would make sense on an enum member).
>
> https://issues.dlang.org/show_bug.cgi?id=9395

Indeed.  That precise use case showed up recently in this PR:  
https://github.com/dlang/dmd/pull/7303/files

Mike


More information about the Digitalmars-d mailing list