[fpc-pascal] High() and Low() for empty dynamic arrays

leledumbo leledumbo_cool at yahoo.co.id
Sat Feb 8 17:19:31 CET 2014


> 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?



--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/High-and-Low-for-empty-dynamic-arrays-tp5718263p5718265.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list