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

Home » Public Forums » archive » Warning: IDL 8.0 alters the behaviour of existing valid programs without any notice!
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: Warning: IDL 8.0 alters the behaviour of existing valid programs without any notice! [message #72243 is a reply to message #72181] Fri, 20 August 2010 04:42 Go to previous messageGo to previous message
svhhaugan is currently offline  svhhaugan
Messages: 8
Registered: August 2010
Junior Member
On Aug 19, 9:35 pm, Chris <beaum...@hawaii.edu> wrote:

> In reality, how many people actually use CATCH to handle the case of a
> failed call to where?

As I *did* point out, the CATCH was not a very likely thing
to be used in real life, it was only for illustrational
purposes, in real life there would just be an informative
error message and the command line (i.e. a crash) so you could
explore what/where/why it went wrong. It's an interactive data
language: relying on things to crash is *not* a bug if that's
what you want to happen.

> not checking the result of where is a bug.

No. Nope. Says who? Where? It isn't. Not in IDL 7.

Nor is it a bug in IDL 8, as other people have pointed out, b/c
you can do data[where(...,/null)] = 0, that's not a bug, is it?

Crashing is not a bug, if that's what you want your program to do in
certain cases. So, a program can be bug-free under IDL 7, yet
buggy when run under IDL 8.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help on text data
Next Topic: mode of a continuous distribution

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

Current Time: Sat Oct 11 09:05:22 PDT 2025

Total time taken to generate the page: 1.20173 seconds