Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-04

AW: strange error

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ZINTEL Gerhard

Hi Vit,

I don't know Delphi but in the old days of Turbo Pascal you were not allowed to use a type declaration inside a function list.

Show quoted text 9 lines
this is what I get during compile (porting some Delphi code): 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);

So maybe the following piece of code would help you:

type
  ArrayOfTV3D = array of TVertex3D;
procedure TranslateArr(xc,yc,zc:single;var Src,Dst:ArrayOfTV3D ;count:int);

Gerhard

Reply by email