[fpc-pascal] 2.1.1 new protected

Peter Vreman peter at freepascal.org
Sat Aug 12 15:59:59 CEST 2006


>>>>>What's the alternative?
>>>>To have most of internal procedures public with a comment "for internal
>>>>use only", I really don't like it, or to have all code in a single file,
>>>>I don't like it too.
>>>>What about "friend units'?
>>>Or something like as it is "solved" in delphi with helper classes (p215).
>>>(Maybe we can also implement the strict version (p168))
>>>
>>>http://info.borland.com/techpubs/delphi/Delphi2006/Reference.pdf
>>It seems that FPC 2.1.1 implements the behaviour of Delphi 2006 
>>'strict protected' by default.
>
>I don't think so, the delphi 2006 strict syntax is more strict.
>The example you gave below is (afaik) still possible in FPC, which 
>wouldn't if it was strict.

strict is also implemented in FPC and it is more strict.




Peter




More information about the fpc-pascal mailing list