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

Home » Public Forums » archive » Re: strange behaviour of .skip command
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: strange behaviour of .skip command [message #60376 is a reply to message #60373] Wed, 14 May 2008 20:46 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Manodeep Sinha writes:

> Is my understanding of .skip incorrect ? Does it skip through more
> than 1 line even when invoked without an additional parameter ?
>
> In any case, it boggles my mind seeing code go through both the "if"
> and "else" part in one execution !

Here is what the .SKIP documentation says:

;*****************************************
Note that .SKIP does not execute or evaluate the code it is skipping.
Rather, it arbitrarily alters the current program counter to the nth
physical statement following the current point. This has implications
that may not be obvious on initial consideration:
;*****************************************

I would say what you see is consistent with this
statement.

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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Coyote Color Program Updates
Next Topic: Fun with IDL 7

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

Current Time: Sat Oct 18 10:27:37 PDT 2025

Total time taken to generate the page: 4.55866 seconds