The one thing that really bothers me is that you cannot do logical operations on enums.
IE:
enum Test
{
OPTION1,
OPTION2;
}
[...]
option = OPTION1 | OPTION2;
[...]
The only way I can think of doing this is to create a method and give each option an integer internally so you can compare the options and then return the final enum constant based on the integer logic operations.
If they can represent enums as bit vectors within internal memory then I’m sure they would have no problems allowing internal logical operations on enums.
Anyone else think this should have been done?