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

Home » Public Forums » archive » Re: Complete IDL application in a single file?
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: Complete IDL application in a single file? [message #5286 is a reply to message #5283] Mon, 20 November 1995 00:00 Go to previous message
rivers is currently offline  rivers
Messages: 228
Registered: March 1991
Senior Member
In article <30B01C24.158E@pet.mpin-koeln.mpg.de>, "H.-M. v.Stockhausen" <stockh@pet.mpin-koeln.mpg.de> writes:
> Hi,
>
> Is there a way to combine all the procedures and functions of a larger
> application into a single file ?
>

Yes, just put them into a single file.

The only trick is to get IDL to compile all the procedures in that file.
There are 2 approaches to this:

- If the package has a single "user-callable" procedure or function
(as opposed to "private" procedures), or at least a single procedure or
function which is always called first, then do the following:
(Assume that procedure or function is called MY_PROGRAM)
- Name the file MY_PROGRAM.PRO
- Put procedure or function MY_PROGRAM as the last one in the file.
If you do this then the first time MY_PROGRAM is called, IDL will find file
MY_PROGRAM.PRO and compile all procedures and functions in that file until it
finds the one called MY_PROGRAM.

- If the file has more than one "user-callable" entry point, then put the
following line in your IDL_STARTUP procedure:
- .RUN MY_PROGRAM

____________________________________________________________
Mark Rivers (312) 702-2279 (office)
CARS (312) 702-9951 (secretary)
Univ. of Chicago (312) 702-5454 (FAX)
5640 S. Ellis Ave. (708) 922-0499 (home)
Chicago, IL 60637 rivers@cars3.uchicago.edu (Internet)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Differential equations solver in IDL 4.0
Next Topic: Telnet Problem

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

Current Time: Fri Oct 10 21:34:54 PDT 2025

Total time taken to generate the page: 0.55860 seconds