[Issue 21143] vtbl not accessible without typeid

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 10 21:26:09 UTC 2020


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

Adam D. Ruppe <destructionator at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator at gmail.com

--- Comment #2 from Adam D. Ruppe <destructionator at gmail.com> ---
Number of entries might be useful though, can't the compiler just issue a
void*[] when asked instead of a void**?

The object instance might only be void** since the length I don't think is
actually stored and that's a dynamic object, plus backward compatibility abi
etc. But for the static type the compiler knows so it can tell at no additional
cost.

--


More information about the Digitalmars-d-bugs mailing list