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
Warning: IDL 8.0 alters the behaviour of existing valid programs without any notice! [message #72181] Wed, 18 August 2010 04:59 Go to previous message
svhhaugan is currently offline  svhhaugan
Messages: 8
Registered: August 2010
Junior Member
pro test,data
catch,error
if error ne 0 then begin
catch,/cancel
print,"Guess that didn't work"
return
end
data[where(data eq min(data)-1)] = 50
end

Perfectly valid code, makes sense in IDL 7.1 although the catch,error
part
would most likely be done "with human intervention".

Now try to figure out what happens in IDL 8.0. Yep, no crash, and your
data is
altered in a way you could not possibly have intended at the time of
writing the
program.

Please, please, please tell me I am just missing the spot in the
release notes
where it says "this is how you turn this behaviour off by default, and
back on only
for code that has been manually inspected or written specifically for
IDL 8.0".
Fix it in 8.0.1! This is serious stuff, people could get hurt when you
introduce
semantic changes like that to a programming language!

And imagine the number of irreproducible science papers that could
result from this!

Sysadmins out there that upgrade to IDL 8.0: Pass on this warning!
[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: Fri Oct 10 05:27:20 PDT 2025

Total time taken to generate the page: 0.71984 seconds