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

Home » Public Forums » archive » a BUG or not a BUG in IDL ?
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: a BUG or not a BUG in IDL ? [message #6696 is a reply to message #6644] Fri, 26 July 1996 00:00 Go to previous message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
In article <4so62p$42j@reznor.larc.nasa.gov>, g.d.nowicki@larc.nasa.gov (Gregory D. Nowicki) writes:
|>
|> HOLD IT!!!
|>
|> You all seem to be missing the point. There is no language I know of that
|> recommends you modify a control variable within a FOR/DO loop. Results are
|> unpredictable. If fact, there are a fair number of compilers out there
|> that will produce an error if you mess with the control variable, not just a
|> warning.
|>
|> As with any language, there are ways to shoot yourself in the foot. IDL
|> just allows you to do it differently.
|>

As for comments to the original article, I definitely agree with the above.
If you want to mess with a FOR loop variable, make the whole thing into
a WHILE loop (or use GOTOs, I don't care as long as I don't have to maintain
the software). They might have mentioned it in the manual, but who would
read it before finding the problem first?

Stein Vidar Haugan
[Message index]
 
Read Message
Read Message
Previous Topic: screwy system variables !? [2]
Next Topic: Problem with X display

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

Current Time: Sun Oct 12 19:43:50 PDT 2025

Total time taken to generate the page: 0.01261 seconds