Wrong enum comparisons

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon May 28 13:08:10 PDT 2012


On 5/28/12 2:37 PM, Jonathan M Davis wrote:
> enum does need some work, but I think that the fact that it can be both built-
> in types such as int as well as user-defined structs is great. It essentially
> gives us the best of both worlds (basic enums such as in C/C++ and more
> complex types as in Java). It's some of the minor details where things tend to
> not work as well as would be nice (e.g. some of the arithmetic that's
> considered legal on enums which are integral values).

I agree it is possible to fix enum.

Andrei




More information about the Digitalmars-d mailing list