offsetof

Jarrett Billingsley jarrett.billingsley at gmail.com
Fri Nov 7 19:03:08 PST 2008


On Fri, Nov 7, 2008 at 8:59 PM, Tim M <a at b.com> wrote:
> Did you find a sollution? I need to get the offset of a member of a struct
> so I can port a .h to a .di but dmd complains that the member doesn't exist
> on the struct. I dont think anyone has ever tried the code at:
> http://www.digitalmars.com/d/1.0/ctod.html#fieldoffset
>

Ehh, that code works with DMD 1.036, dude.  What compiler are you using?


More information about the Digitalmars-d-learn mailing list