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 #33835 is a reply to message #33831] Fri, 31 January 2003 11:38 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Pavel A. Romashkin (pavel_romashkin@hotmail.com) writes:

> I think you can stop a loop if you use BEGIN ... END syntax. Without it,
> the loop is compiled into one command and is not interrupted until
> finished; with it, each item inside is a separate command, so IDL will
> check for breaks every time. I am not sure that it affects the speed at all.

I don't think so. The whole point of the BEGIN ... END syntax
is to make the statements inside appear to be a single statement
to the compiler. The only recourse is to let the loop go to
completion. With an infinite loop, well, they don't call
them "infinite" for no reason. :-)

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[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: Sat Oct 11 08:50:17 PDT 2025

Total time taken to generate the page: 0.31973 seconds