DIP: add Bit Fields

Arafel er.krali at gmail.com
Fri Mar 8 09:02:02 UTC 2024


On 8/3/24 3:38, Walter Bright wrote:
> You'd want C-compatible bit fields if/when you're building a hybrid 
> D/C/C++ binary, like gdc and ldc are.

In that case, why not have the best of both worlds and have `extern(D)` 
(the default, well-defined, perhaps `std.bitmanip`-compatible) and 
`extern(C)` bit fields, like with classes and C++?


More information about the dip.development mailing list