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

Home » Public Forums » archive » Re: Negative indexing and the WHERE function in IDL 8.0
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: Negative indexing and the WHERE function in IDL 8.0 [message #72166 is a reply to message #72165] Thu, 19 August 2010 05:09 Go to previous messageGo to previous message
svhhaugan is currently offline  svhhaugan
Messages: 8
Registered: August 2010
Junior Member
On Aug 18, 6:31 pm, Chris Torrence <gorth...@gmail.com> wrote:
> Hi all,
>
> A possible solution is to use the new /NULL keyword to WHERE:

[..]

> Hope this helps.

Not really. First of all, it isn't IDL 7-compatible. Second,
that change by itself only prevents against accidental modification
of your data immediately after the WHERE. Program logic will
continue past that point based on a false assumption.

How about using "compile_opt strictarrsubs" (which is IDL 7-
compatible)
to imply what it always implied in IDL 7 and before: all negative
array subscripts are illegal, whether scalar or arrays.

If only you'd gone with the option that "new semantics go with a new
program suffix" (as I recommended when I was asked). As it is now,
your customers may find and use stuff from "out there", and it will
not work the way it does on IDL 7 when executed by IDL 8. That's
wasting a lot of people's time. Take e.g. SolarSoft, almost 50 000
routines that are potentially broken in IDL 8 but not in IDL 7,
due to this new feature. And no automatic way to fix it. Inserting
a compile_opt statement can easily be done automatically. This
will certainly break a few of them, I'm sure, but at least it'll
cause a *crash* when something's wrong. Not squash the error
message and let the code go on doing something that was
never foreseen.

Stein
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: FITS WCS routines
Next Topic: obj_destroy on IDL_IDLBridge hangs sometimes

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

Current Time: Wed Oct 08 19:30:20 PDT 2025

Total time taken to generate the page: 0.00463 seconds