Sorry, i had misunderstood the parameter "array of integer" way of managing limits...
It seems to be natural, so, sorry for the noise on the list... I'll try to spend more time on my problems next time...
Le lun 03/03/2003 à 15:19, Francois Schoubben a écrit :
Continuing my tests on range check, i'm rtfm...
On the HIGH keyword part, it's said that "For array types or variables of that type, @samp{High} returns the highest index a variable of that type can assume."
Same for LOW.
So, i'm expecting, in the example
program highlow; var a : array[1..100]of integer; procedure hilo(ar : array of integer); begin writeln(LOW(ar),' ',HIGH(ar)) end; begin hilo(a); end.
that it write 1 100 but it's currently saying 0 99
Why not, but, i think it's not what's said in the documentation... Am i still "out of the game"? Am i using a too old version?