ClassInfo, derived types, and object.Interface

Ludovit Lucenic llucenic at gmail.com
Mon Sep 2 03:56:13 PDT 2013


On Monday, 2 September 2013 at 06:21:55 UTC, Kapps wrote:
> Anyone have any suggestions for this? Essentially trying to
> figure out, given an object.Interface instance and an index
> within it's vtbl property, how we can get the function pointer
> for that method on a class that overrides the method. I assume
> this is a better place to ask than the D.learn forum as it's 
> more
> of an ABI question than a question about learning D.

Hi,

Maybe not fully hitting your point, as I cannot recall the 
correct answer anymore.
But I have found using GDB command line and its memory inspection 
to be quite useful in hunting dereferences in the class info 
stuff.

See especially the Class Object Layout table at 
http://dlang.org/abi.html .
Let me know, if you get stuck.

Cheers,
Ludovit


More information about the Digitalmars-d mailing list