[fpc-devel]About dynamic arrays in 1.1 branch

Pavel V. Ozerski pavel at insect.mail.iephb.ru
Fri Sep 7 14:26:42 CEST 2001


hello,
unfortunately, I cannot test my assumption because I have no Delphi newer than 3.0, i.e. version which supports
dynamic arrays. But I found sources developed for these new Delphi versions which contain followed constructions
(I tried to write a small sample but cannot test it under modern Delphi):

{$ifdef fpc}
{$mode delphi}
{$endif}
var
 x:array of array of longint;
begin
 setlength(x,10,10);
 x[2,3]:=1;
end.

That is shown, that setlength procedure applied to dynamic arrays can have in Delphi different amount of parameters
(depend on count of dimensions in array which is defined in array description (e.g., "array of array of ...).
FPC 1.1 (built from 5.09 sources) cannot support these constructions, only 1D dynamic arrays are supported. If this
improvement is planned then all is OK.  But please don't forget this Delphi feature! May be, I could also help to
introduce it (but I'm not sure that I will have free time now).

Sincerely, Pavel





More information about the fpc-devel mailing list