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 #60371 is a reply to message #60370] Thu, 15 May 2008 11:01 Go to previous messageGo to previous message
manodeep@gmail.com is currently offline  manodeep@gmail.com
Messages: 33
Registered: June 2006
Member
On May 15, 9:21 am, pgri...@gmail.com wrote:
>
> Simply put a "stop" instead of your random test, and resume execution
> with .continue.
> Then there is no need to use .skip.
>
> Cheers,
> Paolo

In this case, I completely agree but the need to use a .skip does
arise if there happens to be one line of offending code. Using .skip
in such a case could lead to "for loops" not being completely
executed, or execution falling through to the "else" part of an "if-
else" condition.

So, my understanding is that you are fine as long as using .skip does
not take you to the end of a control flow statement. If using .skip
does take you to a endif/endfor statement, then the code will behave
somewhat unexpectedly.

As David pointed out, the behaviour of .skip can have implications
that are not immediately obvious !

Cheers,
Manodeep
[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: Sun Oct 12 00:43:39 PDT 2025

Total time taken to generate the page: 0.32139 seconds