[fpc-pascal] Behavior of SizeOf function

Daniël Mantione daniel.mantione at freepascal.org
Fri Mar 9 00:10:34 CET 2007



Op Thu, 8 Mar 2007, schreef Luiz Americo Pereira Camara:

> The result of a SizeOf(Pointer) is know at compile time.
> 
> Does fpc optimize it and treat as a constant or will call the SizeOf
> function every time it appears?

Yes, it treats it as a constant.

Daniël


More information about the fpc-pascal mailing list