[fpc-pascal] Virtual object methods
Sven Barth
pascaldragon at googlemail.com
Wed Jul 3 07:32:58 CEST 2019
Am 02.07.2019 um 19:43 schrieb Michael Van Canneyt:
>
>
> On Tue, 2 Jul 2019, Ryan Joseph wrote:
>
>>
>>
>>> On Jul 2, 2019, at 10:32 AM, Michael Van Canneyt
>>> <michael at freepascal.org> wrote:
>>>
>>> It overwrites the first. There is no such thing as '2 VMT tables'.
>>
>> That’s what I thought. How costly is this? Not sure what it’s doing
>> under the hood but I’d like to know more.
>
> As far as I know, it just moves a pointer in place, see:
> https://www.freepascal.org/docs-html/current/prog/progsu166.html#x210-2240008.2.12
>
Looking at the code posted by Marco and what fpc_help_constructor does
it seems to be a bit more...
Regards,
Sven
More information about the fpc-pascal
mailing list