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

Home » Public Forums » archive » .skip
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
.skip [message #23623] Sun, 28 January 2001 11:46
Mark Fardal is currently offline  Mark Fardal
Messages: 51
Registered: October 1995
Member
Hi,

The .SKIP command doesn't behave quite the way I would prefer.
It doesn't behave as advertised either, although for a different reason.

What it is supposed to do is to skip one statement, or N statements if
you give it an argument N, and then execute 1 statement. I would
prefer that it not execute that one statement. It seems silly--after
all, you are usually just going to type .continue--and who's to say
that you won't decide to skip the next statement too. Besides, it's
not called .skip-and-execute-one. The usual argument about preserving
backwards code compatability don't apply here, since .SKIP can't be
invoked from a program.

But anyway, what it actually does when you type IDL> .SKIP [N]
is to skip N statements, and then execute N statements. Oops.
This is with IDL 5.2.1L on Debian linux.

Before I submit a bug report, I thought I would ask whether people
would like the feature change suggested above as well as the bug fix.
Or are people emotionally attached to the current behavior?

thanks,
Mark


PS: here's a simple example to demonstrate the behavior:

pro junk
print, 'line 2'
print, 'line 3'
print, 'line 4'
print, 'line 5'
print, 'line 6'
print, 'line 7'
print, 'line 8'
print, 'line 9'
print, 'line 10'
end
[Message index]
 
Read Message
Previous Topic: Re: Probably a simple question, but I'm only a beginner with this IDL stuff :)
Next Topic: CALL_EXTERNAL, VC++, ERROR_PROC_NOT_FOUND

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

Current Time: Wed Oct 15 23:13:58 PDT 2025

Total time taken to generate the page: 0.80460 seconds