+1<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 12:44 AM, Andrei Alexandrescu <span dir="ltr"><<a href="mailto:andrei@erdani.com">andrei@erdani.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Probably a good idea would be to enhance the language to allow "deprecated" in front of single enum values:<br>
<br>
enum Test<br>
{<br>
a,<br>
deprecated b,<br>
c<br>
}<br>
<br>
At this point we should pay a great deal of attention to this language feature.<br><font color="#888888">
<br>
<br>
Andrei</font><div><div></div><div class="h5"><br>
<br>
On 9/6/11 5:39 PM, Jonathan M Davis wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, I would point out that because you can't deprecate enum values, the only<br>
deprecation path is to have to have soft migration followed by removal. So, I<br>
don't know how much code breakage you're really saving by leaving the old enum<br>
values in temporarily. We can still do it, but the deprecated keyword and<br>
whatever it brings to the table can't be involved in the process, because you<br>
can't put attributes on enum values.<br>
<br>
Fortunately, there weren't all that many enum values in Phobos which didn't<br>
follow the correct naming conventions outside of std.socket, and after this<br>
release, the only enum values with incorrect names should be the ones in<br>
std.socket, which looks like it's probably going to be revamped anyway.<br>
<br>
- Jonathan M Davis<br>
______________________________<u></u>_________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com" target="_blank">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/<u></u>mailman/listinfo/dmd-beta</a><br>
</blockquote>
______________________________<u></u>_________________<br>
dmd-beta mailing list<br>
<a href="mailto:dmd-beta@puremagic.com" target="_blank">dmd-beta@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/dmd-beta" target="_blank">http://lists.puremagic.com/<u></u>mailman/listinfo/dmd-beta</a><br>
</div></div></blockquote></div><br>