[Issue 8545] defined opCast disables cast(void*)this in classes
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 14 08:18:37 PDT 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8545
--- Comment #5 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2012-08-14 08:18:35 PDT ---
> You could also use
>
> void* test() { return *cast(void**)&this; }
>
Thanks! It does seem to create the exact same assembly even with no
optimizations.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list