So here we set the tag type of VGAColor to u4. Then we set the tag values for Black, White, and Blue. This would also work even if an enum value had a payload:
The tag type has to support equality and comparison operators, and there's no operator overloading. So it pretty much limits it to integers.
Delete the ability to explicit cast enum tags to any integer and replace it with the ability to only explicitly cast to the tag type. So if you want to cast an enum tag to an integer, you have to specify the tag type.
The text was updated successfully, but these errors were encountered: