[fpc-pascal]sizeof returns wrong size?

James_Wilson at i2.com James_Wilson at i2.com
Tue Mar 26 23:38:49 CET 2002

> This will always return 4 I think (because a generic "var"
> parameter is simply a pointer to whatever data you are passing
> to the routine).

> You will have to add an explicit size parameter to your routine
> to solve this.

Unfortunately, that won't work, primarily because the passed var could be 
of any size. I'm hoping there's some way to get the actual size of the var 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20020326/d9800fd5/attachment.html>

More information about the fpc-pascal mailing list