[Issue 3939] Built-in __vptr attribute for classes too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu May 17 07:29:11 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=3939

Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dmitry.olsh at gmail.com
         Resolution|---                         |WONTFIX

--- Comment #2 from Dmitry Olshansky <dmitry.olsh at gmail.com> ---
Could be taken from typeinfo, see object.d:

class TypeInfo_Class : TypeInfo
{
...
   void*[]     vtbl;           /// virtual function pointer table
   Interface[] interfaces;     /// interfaces this class implements
...
}

So I believe those who truly need it will find it. And solution provided is
actually fine for such low-level goal.

--


More information about the Digitalmars-d-bugs mailing list