On Sat, 8 Feb 2014, leledumbo wrote:

Here:

var MyArray : array of longint;

begin
   writeln(low(MyArray));
   writeln(high(MyArray));
end.

prints

0
-1

Is this (High() on empty dynamic arrays return -1) documented somewhere?

It is now, in the system unit documentation for the High() function.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to