www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: OffsetTypeInfo

reply Ender KaShae <astrothayne gmail.com> writes:
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
Aug 18 2007
parent Carlos Santander <csantander619 gmail.com> writes:
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.

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
Aug 18 2007