[dmd-beta] dmd 2.063 beta 5

Jacob Carlborg doob at me.com
Thu May 23 11:40:18 PDT 2013


On 23 maj 2013, at 16:01, Kenji Hara <k.hara.pg at gmail.com> wrote:

> Honestly, issue 10142 contains a kind of enhancement.
> 
> From 2.063, all of enum values and enum members are internally wrapped by VarDeclaration to make UDA for them workable (== fixing issue 9652). But currently dmd disables abstract/override/final attribute for enum variable declarations.
> 
> class C {
>     override enum int x1 = 1;   // currently NG
>     abstract enum int x2 = 1;   // currently NG
>     final enum int x3 = 1;   // currently NG
> 
> But I think this is unnecessary limitation. Relax such limitation would automatically your first enum issue. So
> 10142 contains both regression fix and enhancement.
> 
> Note that the enhancement never break currently accepted code.

I don't understand how an attribute can affect the enum declaration. Anyway, as long as it gets fixed or there's a solution I'm happy :)

Thanks again.

-- 
/Jacob Carlborg



More information about the dmd-beta mailing list