UDAs on Enum Members: Does it require a DIP?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Nov 27 17:48:35 UTC 2017


On 11/27/2017 05:43 AM, Michael V. Franklin wrote:
> On Sunday, 19 November 2017 at 13:35:13 UTC, Michael V. Franklin 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?
> 
> Bumping this thread.  I'm still hoping for an official answer to this.
> 
> Walter and/or Andrei,
> 
> Is the lack of support for attributes on `enum` members an 
> implementation oversight?
> 
> Is a DIP required to move the implementation forward?
> 
> Thanks,
> Mike
> 

Hi Mike, this forum is not an appropriate place for requesting official 
answers. We don't scan the forums looking for matters that need 
attention. Feel free to send email to Walter and myself, and that will 
get answered. Thanks! -- Andrei


More information about the Digitalmars-d mailing list