<div dir="ltr">Honestly, issue 10142 contains a kind of enhancement.<div><br></div><div style>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.</div>
<div style><br></div><div style>class C {</div><div style><div> override enum int x1 = 1; // currently NG</div><div><div> abstract enum int x2 = 1; // currently NG</div></div><div><div> final enum int x3 = 1; // currently NG</div>
</div><div><br></div></div><div style>But I think this is unnecessary limitation. Relax such limitation would automatically your first enum issue. So</div><div style>10142 contains both regression fix and enhancement.</div>
<div style><br></div><div style>Note that the enhancement never break currently accepted code.</div><div style><br></div><div style>Kenji Hara</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/23 Jacob Carlborg <span dir="ltr"><<a href="mailto:doob@me.com" target="_blank">doob@me.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><br></div><div><br>On May 23, 2013, at 12:54 PM, Kenji Hara <<a href="mailto:k.hara.pg@gmail.com" target="_blank">k.hara.pg@gmail.com</a>> wrote:<br>
<br><div><blockquote type="cite"><div><div dir="ltr"><div class="gmail_extra"><div><div><br></div><div>Regression:</div><div><a href="http://d.puremagic.com/issues/show_bug.cgi?id=10142" target="_blank">http://d.puremagic.com/issues/show_bug.cgi?id=10142</a></div>
</div></div></div></div></blockquote><span> </span><br>Thanks for the bug reports. But is this really the same issue as the first enum issue? The first is solved by replacing the C style initializer of the struct with a D style. Don't know about the second one.<br>
<br>--<br>/Jacob Carlborg<br></div></div></div>
<br>_______________________________________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/mailman/listinfo/dmd-beta</a><br></blockquote></div><br></div>