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 
Switch to threaded view of this topic Create a new topic Submit Reply
noop? [message #53296] Fri, 06 April 2007 09:37 Go to next message
Christopher Thom is currently offline  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 Go to previous messageGo to next 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
Re: noop? [message #53387 is a reply to message #53296] Fri, 06 April 2007 11:39 Go to previous message
David Fanning is currently offline  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 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 15:48:03 PDT 2025

Total time taken to generate the page: 0.00469 seconds