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
a BUG or not a BUG in IDL ? [message #6644] Thu, 18 July 1996 00:00 Go to previous message
Luis E. Liziola is currently offline  Luis E. Liziola
Messages: 2
Registered: May 1996
Junior Member
I have a "warning in loops" for you guys...
Check this "stupid" routine:

;---------------------------------------
print,'Integers'
J = 0
for I = 1,10 do begin
print,I
I = I + J
endfor

print,'Float'
J = 0.0
for I = 1,10 do begin
print,I
I = I + J ; Here I am changing the Type of "I"
endfor

print,'Long'
J = 0L
for I = 1,10 do begin
print,I
I = I + J ; Here I am also changing the type of "I"
;if i gt 20 then stop
endfor
end
;----------------------------------

The first loop if OK, the second loop stops after the first
iteration, but the last loop, just keeps going forever...

Any comments ?
At least should be a "WARNING" in the manual...

Luis
University of Colorado
[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: Sat Oct 11 21:12:15 PDT 2025

Total time taken to generate the page: 0.09269 seconds