Also, if I remember correctly, min and max are terribly
broken for enums in the first place.

Yes, perhaps they need to be deprecated.

Also, there is a ugly name clashing between enum field names and the enum properties. The solution is to group them into a single namespace (like "meta"), and then forbid an enum member with the name of the namespace.

Unfortunately overall the design of D enums has more holes than swiss cheese. This is why in a recent post I said to Andrei that perhaps there are still several little breaking changes to do to D, and they need priority over additive enhancements.


Reply via email to