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
On Fri, 22 Aug 2008 10:25:05 +1200, Jarrett Billingsley
<[EMAIL PROTECTED]> wrote:
"Heinz Traub" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Jarrett Billingsley Wrote:
"Jarrett Billingsley" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> It's actually exactly the opposite from how it's defined in the spec:
> you
> can only use offsetof on instances of user-defined types, not on the
> type
> itself.
>
> It makes _absolutely_ no sense, I know. I can't help but feel it's a
> bug,
> but it's been this way for over 4 years.
>
I take that back, it used to be this way but something seems to have
changed.
Yes sir, it used to be this way. I also checked it in your engine
(nonagon).
Well how about that! I couldn't help but think DIMOUSESTATE sounded
familiar.