D1/D2: How to check if a method has been overridden

Max Samukha spambox at d-coding.com
Mon Sep 13 10:49:35 PDT 2010


On 09/13/2010 05:56 PM, klickverbot wrote:
> Thanks a lot, Max, for some reason this works, while my own, very
> similar solution doesn't.

In old times &ClassName.foo used to give you exactly what you would 
expect - the static address of foo. That was extremely useful but 
"unsafe" because the actual type of the function differed from the type 
of the function pointer. Things changed at some point and nobody knows 
whether it is a regression or by design because this feature has never 
been specified.

>
> Unfortunately, however, this exposes yet another DMD bug:
> http://d.puremagic.com/issues/show_bug.cgi?id=4860.

A bad one.


More information about the Digitalmars-d mailing list