[fpc-pascal] class property accessor static
paul.ishenin at gmail.com
Wed Feb 8 03:17:33 CET 2017
07.02.2017 18:10, Mattias Gaertner wrote:
> The getter/setter of a class-property must be "static" (Delphi
> If I understand "static" correctly, then "static" simply omits passing
> the class as parameter. So a static class procedure is just a dumber
> version of a normal class procedure.
> What is the advantage of using "static" for class property accessors?
> Aka: Why did Delphi choose static here?
Class properties has apperared together with class constants and class
variables (which are static by their nature). They were introduced (as I
understand) to give access to private/protected static elements.
More information about the fpc-pascal