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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal