[fpc-pascal] class property accessor static

Michael Van Canneyt michael at freepascal.org
Tue Feb 7 13:51:58 CET 2017



On Tue, 7 Feb 2017, Maciej Izak wrote:

>> I don't see why these calls require static instead of normal.
>>
>
> In other scenario (for normal "property") this call will raise AV.
>
> btw. "class property" is probably slightly faster ;) because don't pass
> "self" parameter.

In other words, there is no real reason why the method must be static.

Michael.


More information about the fpc-pascal mailing list