Can change vtbl record at runtime ?
Виталий Фадеев
vital.fadeev at gmail.com
Wed Feb 3 11:02:23 UTC 2021
On Wednesday, 3 February 2021 at 10:20:44 UTC, evilrat wrote:
> On Wednesday, 3 February 2021 at 08:26:05 UTC, Max Haughton
> wrote:
>> On Wednesday, 3 February 2021 at 05:30:37 UTC, Виталий Фадеев
>> wrote:
>>> Possible to change the vtbl record at runtime ?
>>> Has functional for update vtbl records ?
>>
>> Do you mean "Can I set onSuccess" at runtime? The virtual
>> tables are relied upon by the compiler so I wouldn't play with
>> them.
>
> Not to mention that compiler can optimize away virtual calls if
> it can determine final type on call site.
evilrat, frame, thanks.
More information about the Digitalmars-d-learn
mailing list