ptrdiff_t of class.tupleof entry

Satoshi via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Oct 10 23:11:49 PDT 2016


On Monday, 10 October 2016 at 18:21:10 UTC, Jonathan M Davis 
wrote:
> On Monday, October 10, 2016 17:57:15 Satoshi via 
> Digitalmars-d-learn wrote:
>> [...]
>
> You can use the offsetof property of a member variable to find 
> out the offset between its address and the address of the 
> beginning of the class or struct that it's a member of.
>
> - Jonathan M Davis



Thanks a lot!


More information about the Digitalmars-d-learn mailing list