No subject


Mon Nov 5 00:00:15 PST 2007


"""
struct Interface;
    Information about an interface. A pointer to this appears as the first
entry in the interface's vtbl[].
"""

By implication, the vtbl has to be a void* array of length one, and the first
entry must be non-null.

---
interface IFoo {};

writefln("%x", IFoo.classinfo.vtbl.ptr); // prints '0'
---


-- 



More information about the Digitalmars-d-bugs mailing list