Union with bits ?

Paul phshaffer at gmail.com
Wed Jun 14 00:59:30 UTC 2023


I would like to have labeled bits in a union with a ubyte.  
Something like this:
```d
struct MyStruct {
     union {
         ubyte status;
         bit A, B, C…etc
     }
}
```
Is something like this possible?

Thanks



More information about the Digitalmars-d-learn mailing list