Bitfields in bytes are a physical storage packing mechanism for a specific implementation of data optimization.
Bit fields are TWO very useful things, one of which is a storage packing mechanism.
The other, even-more-useful thing that bit fields provide is atomic, parallel evaluation of multiple related binary conditions. You can do that without bit-aware operators, but the math gets fairly blush-inducing unless you do cryptography on a regular basis.
When I use a bit field in a condition variable, I don’t care about the underlying representation because the value itself is never expressed outside of the scope where I’m using it. (I’m barely even a novice in xtUML, maybe condition variables have no equivalence there.)
- This reply was modified 2 years, 8 months ago by bgat.