[fpc-devel]About dynamic arrays in 1.1 branch

Florian Klaempfl florian at klaempfl.de
Fri Sep 7 14:56:43 CEST 2001

At 16:26 07.09.01 +0400, you wrote:
>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}
>  x:array of array of longint;
>  setlength(x,10,10);
>  x[2,3]:=1;
>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).

I quite sure I implemented it, when implementing dynamic arrays. Maybe it 
has been destroyed when
rewriting the internal proc handling?!

More information about the fpc-devel mailing list