On Tuesday, 26 January 2016 at 15:53:39 UTC, Manu wrote:
How does that work?
I've never really used classes in D.
Interface vtable has a fixup, which added to the interface
pointer gives object pointer.
D classes are derived from Object class.
So, you're saying that if you have an 'I' pointer, which may be
implemented by a C++ class, it still needs to be able to cast
to Object, and therefore fails? I wonder if a C++ class could
somehow be promoted to a D class when being derived in D, by
having an Object placed somewhere.
I mean if you want to derive from two classes, that sounds nasty
:)