ClassInfo, derived types, and object.Interface

Benjamin Thaut code at benjamin-thaut.de
Mon Sep 2 04:14:56 PDT 2013


Am 02/09/2013 08:21, schrieb Kapps:
> 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.

I stronlgy recommend that you read the casting routins insde the 
druntime. They basically contain all the information how to get to the 
object pointer from a interface.

This might also help:
http://3d.benjamin-thaut.de/?p=25#more-25

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d mailing list