[fpc-devel]array dimensions bug?
Aleksey V. Vaneev
picoder at sbis.komi.ru
Tue Nov 6 13:54:46 CET 2001
Hello,
Here's some strange behaviour... it outputs
0 0
0 0
0 50
In fact this is GOOD if base index of parametrised arrays is always
0, but in my previous "array of question" you've said I must use
low() and high(). So, what to assume?
procedure aaa(var a: array of Integer);
begin
writeln(low(a):10,high(a):10);
end;
var
aa: array [0..50] of Integer;
begin
aaa(aa[0]);
aaa(aa[40]);
writeln(low(aa):10,high(aa):10);
end.
Best regards,
Aleksey mailto:picoder at sbis.komi.ru
More information about the fpc-devel
mailing list