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

Home » Public Forums » archive » What is the main difference between a script and a procedure?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
What is the main difference between a script and a procedure? [message #56108] Wed, 03 October 2007 00:22 Go to previous message
mystea is currently offline  mystea
Messages: 16
Registered: October 2007
Junior Member
Hello All,

I am pretty much a novice in IDL. Recently I just learned how to write/
execute a IDL script file. (i.e. @filename)

I became a little curious(or more properly, confused) about the
difference between a procedure and a script. I have my own thoughts
but would like to hear opinions from experts if possible.

As far as I can tell, a script:
1. Can't accept any arguments and can't take any extended loops.
2. It can recognize any variable that exists in the current session
because it behaves just like a a list of commands in sequence.

On the other hand, a procedure:
1. Can accept arguments, but can't recognize any variables which exist
in current IDL session.

However, I often run into the situation that I need a code which can
recognize variables in current session *as well as* taking arguments.
Is it possible to write such a code?
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: large info structure?
Next Topic: running my procedure in VM

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

Current Time: Thu Oct 09 22:39:25 PDT 2025

Total time taken to generate the page: 1.27791 seconds