[fpc-pascal] class declaration questions

Joao Morais post at joaomorais.com.br
Fri Oct 12 23:42:33 CEST 2007


Vincent Snijders wrote:
> Marc Santhoff schreef:
>> Hi,
>>
>> the reference manual is not explicitly clear in describing class
>> declarations. Is it true for classes as for objects that the first block
>> of components after the class header are visible as if declared public?
>>
>> E.g.
>>
>> TAnyClass = class
>>     fField:anytype;
>> end;
>>
>> would make fField visible "public"?
> 
> It would be "published".

iirc only if the class or a superclass is declared with $M+

--
Joao Morais




More information about the fpc-pascal mailing list