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 #43510 is a reply to message #43509] Mon, 18 April 2005 05:50 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
m_schellens writes:

> 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?
> What is the difference between .compile and .run?
> Or what am I missing?

I think probably your definition of "main program" is not
the same as the definition used by IDL, since there is
no "main program" (using the IDL definition) in your example.
Their definition of a main program is a sequence of IDL
statements (not beginning with a procedure or function
definition statement), followed by an END statement.

print, 'main program'
a = 5
print, a
END

In the absence of a "main program", the .RUN and .COMPILE
executive commands act exactly the same.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[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: Fri Oct 10 14:34:26 PDT 2025

Total time taken to generate the page: 0.32173 seconds