Finalizers, Destructors, RAII, GC
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Fri Apr 30 10:44:07 UTC 2021
On Thursday, 29 April 2021 at 15:11:06 UTC, Imperatorn wrote:
> 1. What's bad about the implementation (haven't looked)?
From the ABI:
>An interface is a pointer to a pointer to a vtbl[]. The vtbl[0]
>entry is a pointer to the corresponding instance of the
>object.Interface class. The rest of the vtbl[1..$] entries are
>pointers to the virtual functions implemented by that interface,
>in the order that they were declared.
Imperatorn:
> 2. Can we fix it?
It could be made part of the vtable instead, but that requires
more advanced linking.
It probably won't happen.
More information about the Digitalmars-d
mailing list