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

Home » Public Forums » archive » Simple IDL array bound checking bug
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
Simple IDL array bound checking bug [message #7022] Fri, 13 September 1996 00:00
wmc is currently offline  wmc
Messages: 117
Registered: February 1995
Senior Member
How on earth doees IDL fail to spot the following array bound violation?

wmc> data=fltarr(1)

; Case 1 - OK
wmc> print,data(2)
% Attempt to subscript DATA with <INT ( 2)> is out of range.
% Execution halted at: $MAIN$

; Case 2 - blithely prints junk
wmc> print,data([2])
0.00000

- William
wmc@bas.ac.uk
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Wanted: spherical harmonics to gridpoint
Next Topic: Contouring for 2D-Arrays, xfarbe new version

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

Current Time: Sun Oct 12 07:19:26 PDT 2025

Total time taken to generate the page: 1.59954 seconds