Wouldn't this be better with bitfields?

Walter Bright newshound2 at digitalmars.com
Wed Jul 3 18:04:33 UTC 2024


On 7/3/2024 2:24 AM, Dukc wrote:
> The language builtin would have somewhat nicer syntax though.

A much nicer syntax.

> What if bitfields 
> were moved from `std.bitmanip` to `core.*` and the compiler would lower any 
> bitfield declarations in struct/class to a `bitfields` mixin?

Then they won't be compatible with C bitfields.



More information about the Digitalmars-d mailing list