[Issue 2312] unexpected function addresses dump behaviour
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Aug 25 23:18:08 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2312
------- Comment #1 from bugzilla at digitalmars.com 2008-08-26 01:18 -------
Taking the address of a member function results in a delegate. Casting the
delegate to a void* gives the value of the 'this' part of the delegate, which
is oObj in the example, and always the same value.
Casting the address of a member function directly to a function pointer gives
the address of the function, hence the 3 different values in the last group.
The hex formatting is still an issue, though.
--
More information about the Digitalmars-d-bugs
mailing list