[dmd-beta] Migration path for enum Endian?

Andrei Alexandrescu andrei at erdani.com
Tue Sep 6 15:44:04 PDT 2011

Probably a good idea would be to enhance the language to allow 
"deprecated" in front of single enum values:

enum Test
    deprecated b,

At this point we should pay a great deal of attention to this language 


On 9/6/11 5:39 PM, Jonathan M Davis wrote:
> Also, I would point out that because you can't deprecate enum values, the only
> deprecation path is to have to have soft migration followed by removal. So, I
> don't know how much code breakage you're really saving by leaving the old enum
> values in temporarily. We can still do it, but the deprecated keyword and
> whatever it brings to the table can't be involved in the process, because you
> can't put attributes on enum values.
> Fortunately, there weren't all that many enum values in Phobos which didn't
> follow the correct naming conventions outside of std.socket, and after this
> release, the only enum values with incorrect names should be the ones in
> std.socket, which looks like it's probably going to be revamped anyway.
> - Jonathan M Davis
> _______________________________________________
> dmd-beta mailing list
> dmd-beta at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/dmd-beta

More information about the dmd-beta mailing list