[fpc-pascal] static class methods

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Feb 7 11:01:02 CET 2008


On 07 Feb 2008, at 10:56, Peter Vreman wrote:

> Disabling self is not possible. It is required and also used in our  
> RTL:
>
>      class function TObject.InstanceSize : SizeInt;
>        begin
>           InstanceSize:=pSizeInt(pointer(self)+vmtInstanceSize)^;
>        end;

Instance size is a regular class method, not a static class method.


Jonas



More information about the fpc-pascal mailing list