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