www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Bitfield structs and suggestion

Regan Heath:
 In the meantime, in order to avoid having to re-code all the bit shifts 
 in every struct with bitfields isn't there a mixin which could implement 
 properties for accessing specific bits.

Take a look at the "Bitfield accessors" thread in digitalmars.D.learn
Nov 23 2007