interfacing C bitfield structs

Walter Bright newshound1 at digitalmars.com
Wed Nov 28 15:09:12 PST 2007


Wolfgang Draxinger wrote:
> Now with SDL I've encountered a problem: SDL makes use of serval
> bitfields and I've no idea, how to interface them to D.
> 
> Has somebody an idea how I best interface with it elegantly?

Yes,

http://www.digitalmars.com/d/phobos/std_bitmanip.html



More information about the Digitalmars-d mailing list