[fpc-pascal] private type and type compatibility

Xiangrong Fang xrfang at gmail.com
Thu Oct 31 02:54:28 CET 2013


2013/10/30 Martin <lazarus at mfriebe.de>

>
> Since the type is part of value, and the value is public, all of the type
> that is accessed through the value is available.
> Same as you can access a private field through a public property.
>

Access a private variable via public property is analogous to function​​
calls, isn't it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131031/97937091/attachment.html>


More information about the fpc-pascal mailing list