[fpc-pascal] Pass open array to static array?

Ryan Joseph genericptr at gmail.com
Mon Apr 13 06:34:41 CEST 2020


I just came across another related issue to this thread. Is it not possible to init dynamic arrays from static arrays? I remember there being more compatibility between the 2 types but I may have forgotten.

var
  a: array[0..1] of integer;
  d: array of integer;
begin
  d := a;
end.

Regards,
	Ryan Joseph



More information about the fpc-pascal mailing list