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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 11 08:27:17 UTC 2021


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #11 from Basile-z <b2.temp at gmx.com> ---
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.

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