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

Home » Public Forums » archive » Re: endless loops suck
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: endless loops suck [message #33820] Mon, 03 February 2003 17:57 Go to previous message
Thomas Gutzler is currently offline  Thomas Gutzler
Messages: 44
Registered: November 2002
Member
Pete wrote:
> Hi,
> I've come across this problem before when updating plots.
>
> This will not not break:
>
> PRO doomed_to_continue
> a=0L
> While (1) DO BEGIN
> a=a+1
> ENDWHILE
> END
>
> This will break:
>
> PRO happy_to_break
> a=0L
> While (1) DO BEGIN
> a=a+1
> wait,0.0001
> ENDWHILE
> END
>
> as will this:
>
> PRO happy_to_break_2
> a=0L
> While (1) DO BEGIN
> a=a+1
> print,''
> ENDWHILE
> END

Weird!
I'm starting to put some waits meta-info-prints in my loops. This spawns
a new question:
How is this possible ?

FOR i=0,4 DO PRINT, i, ' ', /NONEWLINE
^^^^^^^^^^ this may be a problem
Result:
0 1 2 3 4

I couldn't find anything usefull in the help. If this isn't possible I
have to use the wait :/

thx,
Tom
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL, arrays, and memory
Next Topic: Expert information needed

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

Current Time: Wed Oct 08 16:58:36 PDT 2025

Total time taken to generate the page: 0.00496 seconds