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

Home » Public Forums » archive » last array index subscript
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: last array index subscript [message #33830 is a reply to message #33735] Sat, 01 February 2003 21:20 Go to previous messageGo to previous message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"Vinay L. Kashyap" <kashyap@head-cfa.harvard.edu> wrote in message
news:3e3b0855.0@cfanews.harvard.edu...

> All I know is that it is a feature, not a bug.

Such a worthwhile feature that in IDL 5.6 a COMPILE_OPT keyword was
introduced to disable it!

STRICTARRSUBS - When IDL subscripts one array using another array as
the source of array indices, the default behavior is to clip any
out-of-range indices into range and then quietly use the resulting
data without error. This behavior is described in Array
Subscripting. Specifying STRICTARRSUBS will instead cause IDL to
treat such out-of-range array subscripts within the body of the
routine containing the COMPILE_OPT statement as an error. The
position of the STRICTARRSUBS option within the module is not
important: All subscripting operations within the entire body of the
specified routine will be treated this way.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: PNGs with alpha channel?
Next Topic: Polyfill, z-buffer & postscript

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

Current Time: Fri Oct 10 10:19:12 PDT 2025

Total time taken to generate the page: 1.27818 seconds