comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » bounds check in array subscripts
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
bounds check in array subscripts [message #16735] Fri, 20 August 1999 00:00
Mark Fardal is currently offline  Mark Fardal
Messages: 51
Registered: October 1995
Member
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: ENVI 3.2 now shipping
Next Topic: Re: Philips Gyroscan ACS-NT: Raw data format

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 11:49:21 PDT 2025

Total time taken to generate the page: 0.23894 seconds