Bit fields in struct, why doesn't D support them?

Brad Roberts braddr at puremagic.com
Tue May 19 22:47:28 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.

Google is your friend.  This thread has happened at least once in the past
already.  Before rehashing it, might as well catch up on the past discussion:

http://www.digitalmars.com/d/archives/digitalmars/D/proper_bit_fields_in_the_D2_language_88506.html

Later,
Brad




More information about the Digitalmars-d mailing list