[fpc-devel] Strange dot allowed in array?

Martin Frb lazarus at mfriebe.de
Sun Apr 13 16:13:43 CEST 2014


Just seen  http://forum.lazarus.freepascal.org/index.php?topic=24191

trunk (2 or 3 weeks old) indeed compiles the below.

Looking at the SetLength line: Why does it allow the "." ?


program Project1;
type
   T1 = array of integer;
   T2 = array of T1;
   T3 = array of T2;
var
a: T3;
begin
   SetLength(a[0].[0],1);
end.

_______________________________________________
fpc-devel maillist  -  fpc-devel at lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel



More information about the fpc-devel mailing list