[fpc-pascal] All methods vitrual ?
Adriaan van Os
adriaan at adriaan.biz
Wed Oct 11 11:10:40 CEST 2023
Sven Barth via fpc-pascal wrote:
> Ah, yes, only classes and interfaces can be used for published fields.
> For properties anything is allowed.
However, what makes the whole thing unuseable is that with {$M-} the compiler doesn't accept
"published". So, without using macros, the same source code can not be compiled with both {$M+} and
{$M-}. That is really clumsy. With {$M-} "published" (or some other visibility specifier) should be
equal to "public".
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list