August 19, 2007 Re: OffsetTypeInfo | ||||
---|---|---|---|---|
| ||||
Carlos Santander Wrote:
> Ender KaShaea escribió:
> > How do you use the OffsetTypeInfo class, or the offti function of the classinfo or typeinfo classes? I was expecting them to give the type and offfset of each member of a class or struct, though I can't figure out how to get that information.
>
> Maybe I'm misunderstanding you, but have you checked if .offsetof does what you want to do?
>
> --
> Carlos Santander Bernal
what is .offsetof I have not heard of it
|
August 19, 2007 Re: OffsetTypeInfo | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ender KaShae | Ender KaShae escribió: > Carlos Santander Wrote: > >> Ender KaShaea escribió: >>> How do you use the OffsetTypeInfo class, or the offti function of the >>> classinfo or typeinfo classes? I was expecting them to give the type and >>> offfset of each member of a class or struct, though I can't figure out how to >>> get that information. >> Maybe I'm misunderstanding you, but have you checked if .offsetof does what you want to do? >> >> -- >> Carlos Santander Bernal > > what is .offsetof I have not heard of it Look for "Field Properties" in http://www.digitalmars.com/d/class.html -- Carlos Santander Bernal |
Copyright © 1999-2021 by the D Language Foundation