get vtable size

Jacob Carlborg via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon May 8 04:40:38 PDT 2017


On 2017-05-07 06:01, Mike B Johnson wrote:
> how many elements(virtual functions) are in the __vptr?

I guess you can use __traits(allMembers) and __traits(isVirtualMethod) [1].

[1] http://dlang.org/spec/traits.html

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list