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

Home » Public Forums » archive » noop?
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: noop? [message #53385 is a reply to message #53296] Fri, 06 April 2007 11:12 Go to previous messageGo to previous message
JD Smith is currently offline  JD Smith
Messages: 850
Registered: December 1999
Senior Member
On Fri, 06 Apr 2007 11:37:14 -0500, Christopher Thom wrote:

> Hi all,
>
> Does IDL have some kind of noop statement? I'm looking for something to
> anchor breakpoints at a point where several control statments have their
> ends...

Hmm... if you set a breakpoint at a given location, IDL will move it
to the first subsequent line where it can actually stop. Can you show
an example of where it won't stop, when you want it to, and where you
think it should be able to?

One related issue is the continued control statement vs. begin...end
flavor control statement. Consider the former:

for i=0,100 do compute,i

vs. the latter:

for i=0,100 do begin
compute,i
end

In the first case, IDL compiles the entire loop into a single block of
code, which cannot be interrupted or stopped. In the latter case, you
can set breakpoints, interrupt, etc. within the loop. For this reason
as well, the first case is (modestly) faster (depending sensitively on
how much is being *done* in each loop iteration).

JD
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Combining rgb fits files
Next Topic: significance of a linear regression

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

Current Time: Fri Oct 10 20:35:19 PDT 2025

Total time taken to generate the page: 0.71646 seconds