UDAs on Enum Members: Does it require a DIP?
Jonathan M Davis
newsgroup.d at jmdavisprog.com
Sun Nov 19 15:57:58 UTC 2017
On Sunday, November 19, 2017 13:35:13 Michael V. Franklin via Digitalmars-d
wrote:
> Apparently user-defined attributes are not permitted on enum
> members.
>
> Issue is documented here:
> https://issues.dlang.org/show_bug.cgi?id=9701
> Pull request implementing the feature is here:
> https://github.com/dlang/dmd/pull/6161
>
> The pull request seems to have stalled over how to get the
> feature approved. Some consider it an oversight in the
> implementation of UDAs. Others consider it a language change.
> What's the official word? Does it require a DIP?
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
- Jonathan M Davis
More information about the Digitalmars-d
mailing list