Home »
Public Forums »
archive »
Re: I guess its a silly question - but i need a solution
Re: I guess its a silly question - but i need a solution [message #30636] |
Mon, 13 May 2002 13:03 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Akhila (idlfreak@yahoo.com) writes:
> I have a problem here. When i write a procedure and then in another
> program if i call the procedure, i have to compile all the procedures
> individually before running the main code. Is that the way it should
> work? Won't the main program compile all the other small procedures?
Automatic compilation requires that the name of the file
be the same as the *last* program module (procedure or
function) in the file. Any procedure or function modules
in front of the last program module should be utility
routines for the last module. Any utility module that can be
expected to be called by other procedures or functions
in other files should be taken out of the file it is in
and placed in a separate file, appropriately named with
the *last* module in the file. All files are placed in
the PATH, and viola! everything works as expected. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Current Time: Fri Oct 10 12:20:13 PDT 2025
Total time taken to generate the page: 0.06125 seconds