Bug 10991 – Implement trait to get vptr index of a method.

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-09-07T21:34:00Z
Last change time
2013-09-10T00:47:31Z
Keywords
pull
Assigned to
opantm2+dbugs
Creator
opantm2+dbugs

Comments

Comment #0 by opantm2+dbugs — 2013-09-07T21:34:28Z
This is required in order to properly implement method invocation for runtime reflection as we need to look up the pointer to the overridden function in the ClassInfo vtbl. Pull request coming once I write tests.
Comment #1 by opantm2+dbugs — 2013-09-07T23:11:00Z
Comment #2 by github-bugzilla — 2013-09-09T16:58:45Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6d6e4d1e2ca16ae913df478c76ff3a2e4f2348d2 Fix issue 10991 - Implement __traits(getVirtualIndex). Minor tweaks to __traits(getVirtualIndex). https://github.com/D-Programming-Language/dmd/commit/d6c2b20d190f73cc826d1d71bb0b64d421b74cbc Merge pull request #2536 from Kapps/fix10991 Fix issue 10991 - implement __traits(getVirtualIndex)