On Sunday, 13 March 2016 at 15:43:02 UTC, MGW wrote: > Cfoo foo = new Cfoo(); foo.saveThis(&foo); However note that this is not the same as that function. cast(void*)this and &this are 2 different things. So if you want to do the same as saveThis just do void* thisAddr = cast(void*) &this; instead