On 26/07/10 21:56, lurker wrote:
Where's the vtable layout documented? I couldn't find it in the documentation.
Bonus points: How would it look like in C?
Thanks
See:
http://www.digitalmars.com/d/1.0/abi.html
http://www.digitalmars.com/d/2.0/abi.html
For D2, you can take a look at this header for how a class should look
to C (look at the Object struct):
http://dsource.org/projects/druntime/browser/trunk/src/rt/mars.h
I believe D1 has a similar file, I'll leave you to find that yourself
though :)
--
Robert
http://octarineparrot.com/