Closed aDotInTheVoid closed 2 years ago
Another way to think about it:
both enums and flags are sets of labels and a coresponding unique number
For an enum, a valid value is exactly one of the numbers defined
For a flag, a valid value only has 1
in a position where at least one of the numbers that make up the flag has a 1
.
Additionaly, enums have a huristic to create the values. flags dont
Roughly coresponds to a bitfield
Current enums are like
We also want something
This should look like
Unlike
enum
s, flags must set all fields. The syntax for a field value is TDB