D as an extension language for C

Andrew andrewlalisofficial at gmail.com
Tue May 16 12:54:18 UTC 2023


On Tuesday, 16 May 2023 at 11:04:53 UTC, IGotD- wrote:
> The only thing I can think of that isn't supported are 
> bitfields. The question is if this could have been solved with 
> meta programming.

Bit fields are already something that's provided in Phobos: 
https://dlang.org/phobos/std_bitmanip.html#bitfields

I can't attest to how good they are, but I think it's the right 
approach; rather choose to implement something in the std lib 
than the language itself to avoid unnecessary complexity.


More information about the Digitalmars-d mailing list