[fpc-devel] Static class methods can or cannot be virtual?

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Jan 22 18:48:09 CET 2018


On Mon, 22 Jan 2018 18:45:57 +0100
Maciej Izak <hnb.code at gmail.com> wrote:

> 2018-01-22 18:25 GMT+01:00 Denis Kozlov <dezlov at gmail.com>:
> 
> > I presume then there is no way for having a class property who's returned
> > value can be dynamically changed in child classes? In other words, class
> > property getters/setters can only be implemented by the class that declared
> > the property.
> >  
> 
> Correct. There was some topic about "static class methods" and "class
> property" some time ago on fpc-devel or in fpc-pascal. For example static
> class methods can be used as callback procedure for external APIs/Libraries.

Can you explain what external APIs/Libraries have to do with class
properties?

Mattias




More information about the fpc-devel mailing list