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 #72231 is a reply to message #72181] Fri, 20 August 2010 14:57 Go to previous messageGo to previous message
Chris[7] is currently offline  Chris[7]
Messages: 4
Registered: August 2010
Junior Member
> 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.

I guess so. Though it sounds a little perverse to my ears to say that
you "want" your program to crash. They do call it "crashing", after all...

I understand the frustration at the unexpected side effect of IDL
allowing negative array indices (otherwise a great feature, yes?). But
I'm still inclined to blame the end user for writing vulnerable code.
Even if the code is "bug-free" in IDL7, it was still weak code for not
checking for pathological cases. IDL8 removes the safety net.

It doesn't seem like good practice to explicitly rely on a programming
language to crash whenever it detects a potential coding mistake. There
are plenty of other instances where bad code yields unexpected results,
but IDL doesn't say anything -- like dividing 2 integers and expecting a
float.

chris
[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: Thu Oct 16 01:27:29 PDT 2025

Total time taken to generate the page: 1.28811 seconds