[Issue 21690] Unable to dynamic cast extern(C++) classes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jun 7 10:10:51 UTC 2021


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

--- Comment #12 from Basile-z <b2.temp at gmx.com> ---
(In reply to Basile-z from comment #11)
> Very hypothetically, let's say that if "super" calls are supported in C++
> classes then this means that maybe the super virtual table is stored
> somewhere. If so then full dynamic casts would be possible.
> 

this supplemental comment was BS. Obviously `super` does not use the vtable.

> Someone needs to study a bit more the ABI of extern(C++) classes in D.
> Then maybe a dedicated dyncast() could be added to druntime.

--


More information about the Digitalmars-d-bugs mailing list