noop? [message #53296] |
Fri, 06 April 2007 09:37  |
Christopher Thom
Messages: 66 Registered: October 2006
|
Member |
|
|
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...
cheers
chris
|
|
|
Re: noop? [message #53385 is a reply to message #53296] |
Fri, 06 April 2007 11:12   |
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
|
|
|
Re: noop? [message #53387 is a reply to message #53296] |
Fri, 06 April 2007 11:39  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> How about CONTNUE.
There is probably an "I" in there somewhere... :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: noop? [message #53388 is a reply to message #53296] |
Fri, 06 April 2007 11:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Christopher Thom writes:
> 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...
How about CONTNUE.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|