[fpc-devel] Class property and virtual getter

Michael Schnell mschnell at lumino.de
Mon May 26 13:04:52 CEST 2014


On 05/26/2014 12:52 PM, Ewald wrote:
> 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.
>
I  see.

The hidden parameter would be accessed as "Self" ?

Thanks for the explanation !

Now I came across a "class procedure xyz; virtual;" and was astonished 
that this does compile.

I suppose this means that the hidden parameter will point to the 
classtype of the child instead of the parent in a derived class.

correct ?

-Michael





More information about the fpc-devel mailing list