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

Home » Public Forums » archive » Re: Do you find this weird too?
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: Do you find this weird too? [message #56844] Mon, 19 November 2007 15:38 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On Nov 19, 4:01 am, Allan Whiteford
<allan.rem...@phys.remove.strath.ac.remove.uk> wrote:
> A compile option to turn this behaviour off might be a good compromise.

Good idea. It's called strictarrsubs:

IDL> a = findgen(20)
IDL> print, a[[-1, 2, 20]]
0.00000 2.00000 19.0000
IDL> compile_opt strictarrsubs
IDL> print, a[[-1, 2, 20]]
% Array used to subscript array contains out of range subscript: A.
% Execution halted at: $MAIN$

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NaN Magic Bingo!
Next Topic: BUG REPORT: MIN_CURVE_SURF

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

Current Time: Wed Oct 08 14:07:59 PDT 2025

Total time taken to generate the page: 0.00325 seconds