offsetof
Heinz Traub
malagana15 at yahoo.es
Thu Aug 21 13:25:35 PDT 2008
Jarrett Billingsley Wrote:
> "Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message
> news:g8kh8p$6c4$1 at digitalmars.com...
>
> > 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).
More information about the Digitalmars-d-learn
mailing list