third draft: add bitfields to D
Dom DiSc
dominikus at scherkl.de
Thu Jul 4 12:20:52 UTC 2024
On Wednesday, 3 July 2024 at 19:02:59 UTC, Dave P. wrote:
> Wouldn’t a more D-like syntax be to have the number of bits
> following the type instead of following the variable name? This
> would be more consistent with how D arrays are different than C
> arrays.
>
> ```D
> struct Foo {
> uint:4 x;
> uint:5 y;
> }
> ```
I like this. As for arrays it's much more readable than the C
syntax.
More information about the dip.development
mailing list