[fpc-pascal]strange error

Jonas Maebe jonas at zeus.ugent.be
Tue Apr 15 14:07:32 CEST 2003


On dinsdag, apr 15, 2003, at 10:43 Europe/Brussels, Vit Kavan wrote:

> Error: call by var parameters have to match exactly: Got "Array Of
> TVertex3D" expected "Array Of TVertex3D"
>
> this is the function declaration:
>
> procedure TranslateArr(xc,yc,zc:single;var Src,Dst:array of
> TVertex3D;count:int);
>
> this is how I call it:
>
> TranslateArr(Center.x,Center.y,Center.z,Vertices,Vertices2,VertexCount) 
> ;
> any ideas? bug? unsupported feature?

What is the declaration of Vertices and Vertices2? I suspect it's a  
problem with confusion of open and dynamic arrays in the compiler  
though, maybe we should add those keywords when constructing the name  
of a type to write out.


Jonas




More information about the fpc-pascal mailing list