[fpc-devel]SizeOf() reports 0 for Var Paramaters. (1.1)

Nikolay Nikolov nickysn1983 at netscape.net
Sun Jul 27 20:07:04 CEST 2003

Marco van de Voort wrote:

>proceduer bla(var a: array of longint);      
>// high() and sizeof() are possible
>and for
>procedure bla(var a);           
>// none.
>I'm pretty certain it was the same for 1.0.6. This was already the
>case in BP/TP (e.g. see the blockwrite and blockread procedures that
>require the length to be explicitely passed)
Fpc 1.0.6's SizeOf used to report 4 (regardless of the size of the 
parameter actually passed) and I submitted a bug report, so it was fixed:

More information about the fpc-devel mailing list