[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bounds check in array subscripts
Hi,
just noticed something odd, running IDL 5.1 on a Debian Linux Pentium box.
IDL> x = findgen(3)
IDL> subs = indgen(10)
IDL> print, x(subs)
0.00000 1.00000 2.00000 2.00000 2.00000 2.00000
2.00000 2.00000 2.00000 2.00000
IDL> print, x(9)
% Attempt to subscript X with <INT ( 9)> is out of range.
% Execution halted at: $MAIN$ 1 sfr.pro
is this the expected behavior? I am suddenly filled with fear that
all of my programs have undetected array subscript bugs.
thanks,
Mark Fardal
UMass