Bit fields in struct, why doesn't D support them?
Lutger
lutger.blijdestijn at gmail.com
Tue May 19 22:26:40 PDT 2009
Jeremie Pelletier wrote:
> I know this is an old subject, as this has been stated in the struct reference page ever since D1, but I'm really wondering why the bit fields aren't supported (or purposely not implemented?) in D.
>
> Having this feature would greatly simplify a lot of code, and allow easier interfacing with C structs using it.
In D2 it is supported by phobos: http://www.digitalmars.com/d/2.0/phobos/std_bitmanip.html
More information about the Digitalmars-d
mailing list