[fpc-devel] Class property and virtual getter

Ewald ewald at yellowcouch.org
Mon May 26 12:52:05 CEST 2014


On 26 May 2014, at 11:04, Michael Schnell wrote:

> I found out that I need to add "static" to the "get" class procedure to allow it's usage in a "class property".
> 
> Sorry for the noise :-[
> 
> If fact I don't understand what the additional "static" is necessary. I was of the op pinion that class procedures are static, anyway.
> 
> Can somebody clarify ?
> 

A `Class Procedure/Function XXX;` has a hidden parameter that points to the classtype. A `Class Procedure/Function XXX; static;` doesn't have this hidden parameter.

--
Ewald




More information about the fpc-devel mailing list