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