[fpc-pascal] All methods vitrual ?
Sven Barth
pascaldragon at googlemail.com
Tue Oct 10 22:23:28 CEST 2023
Am 10.10.2023 um 02:04 schrieb Adriaan van Os via fpc-pascal:
> Sven Barth via fpc-pascal wrote:
>
>> No. Only those in the published section are part of the vMethodTable.
>> And when compiled with $M+ the default visibility is changed from
>> public to published.
>
> OK, but that means that by explicitely specifying
> public/private/protected for fields and published for methods, a
> method list can be generated when compiling with {$M+}.
Only for the class that is parsed while $M is enabled and all that
inherit from that class. It does not affect any parent classes that
don't have $M enabled.
Regards,
Sven
More information about the fpc-pascal
mailing list