Documentation on D's vtable

Robert Clipsham robert at octarineparrot.com
Mon Jul 26 14:25:57 PDT 2010


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/


More information about the Digitalmars-d mailing list