[fpc-pascal] Advanced Records - Why not available by default?
Daniel Gaspary
dgaspary at gmail.com
Sun Jan 15 16:28:11 CET 2012
On Sun, Jan 15, 2012 at 04:43, J.-c. Chu <jcchu at acm.org> wrote:
> For one thing, class variables, class methods, and class properties are
> subject to visibility controls and inheritance.
>
> So you can, for example, have a private class variable initialized with
> class constructor (which avoids code in the INITIALIZATION section) and
> accessed via a read-only class property (which is impossible with
> unit-level variables).
Interesting, thank you for share this use case.
More information about the fpc-pascal
mailing list