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

Home » Public Forums » archive » Re: .compile vs .run
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: .compile vs .run [message #43509 is a reply to message #43499] Mon, 18 April 2005 07:45 Go to previous messageGo to previous message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
m_schellens wrote:
> I have the following file 't.pro':
>
> pro t1
> print,'t1'
> end
>
> pro t
> print,'t'
> end
>
> pro t3
> print,'t3'
> end
>
>
> IDL 6.1 gives:
>
> IDL> .comp t
> % Compiled module: T1.
> % Compiled module: T.
> % Compiled module: T3.
> IDL> .run t
> % Compiled module: T1.
> % Compiled module: T.
> % Compiled module: T3.
>
> Isn't .run supposed to EXECUTE the main program?

I think the above is not a main program. It's a procedure. Main programs
don't have the "PRO ..." line (but they do have the END statement).

> What is the difference between .compile and .run?

I think for functions / procedures, there is no difference. Have a look
at .RUN and .COMPILE in the help index.

Benjamin
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: "?" help-command in linux
Next Topic: IDL - ENVI batch mode question

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

Current Time: Sat Oct 11 11:49:36 PDT 2025

Total time taken to generate the page: 0.16317 seconds