bit-level logic operations on enums
Steven Schveighoffer
schveiguy at yahoo.com
Fri Mar 1 11:23:20 PST 2013
On Fri, 01 Mar 2013 08:38:53 -0500, FG <home at fgda.pl> wrote:
> Not sure why byte enum would be handled any differently than simple byte.
An enum is guaranteed by the compiler to be one of the specified values.
The simple accounting kept by the compiler to prove whether one type will
fit in another doesn't include enums, that is just prohibited, even if it
seems like it should result in a valid enum value.
-Steve
More information about the Digitalmars-d
mailing list