Get address of object in constructor.
MGW via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Mar 13 09:16:55 PDT 2016
On Sunday, 13 March 2016 at 16:02:07 UTC, WebFreak001 wrote:
> 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
void* thisAddr = cast(void*) &this;
Error compile: Deprecation: this is not an lvalue
More information about the Digitalmars-d-learn
mailing list