On 6 November 2011 18:33, Jonas Maebe <[email protected]> wrote:
>
> On 06 Nov 2011, at 19:26, Frank Church wrote:
>
> > So it means that unless a field or method is in the private or protected
> > section
>
> or published, strict private or strict protected section
>
> > it is automatically public?
>
> Yes (or published in case of {$m+}, as Michael added).
>
>
>
If that is the case then a lot of Free Pascal and Delphi demos are teaching
bad practices because they make most members accessible externally when
there is no real reason to. I never thought about that much because I just
wanted to get my apps working rather than think about proper OOP practices,
especially in the case of UI objects like forms, controls etc
> Jonas
> _______________________________________________
> fpc-pascal maillist - [email protected]
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
--
Frank Church
=======================
http://devblog.brahmancreations.com
_______________________________________________
fpc-pascal maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-pascal