Joseph Adams wrote:
>
> By the way, just curious: why can't the internal representation of an
> enum just be an INT starting from 0 by default, like in C? That would
> make a heck of a lot more sense, in my opinion. It might also allow
> users to do things like this in the future:
>
>
>
Please review the debates over the internal representation from several
years ago when enums were implemented. Essentially the difficulty is
that the output function needs to get nothing more than the value
itself, and that means the representation needs to carry with it some
information about *which* enum set it is in.
cheers
andrew