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

klickverbot see at klickverbot.at
Tue Sep 7 14:14:51 PDT 2010


On 9/7/10 11:12 PM, dsimcha wrote:
> One way to test for overriding at runtime is to compare the function pointer of a
> delegate obtained at runtime to the function pointer obtained from the compile
> time type.

That's basically the same idea I were already using, but have you tried 
implementing it for overloaded functions? I have not gotten this to work 
since there is seemingly no way to do &a.foo then.


More information about the Digitalmars-d mailing list