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

Home » Public Forums » archive » Re: linking programs/ procedures
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: linking programs/ procedures [message #19787 is a reply to message #19779] Wed, 26 April 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sameer Nigam (samnigam@CS.Arizona.EDU) writes:

> how do i link two-three files during compilation?
>
> also if i have a procedure X that is written in a file say X.pro and i
> want to call it as a subroutine in another procedure Y that is in another
> file Y, can i just call that procedure by reference/name and if so how do
> i do it?

Any "command" name that you wish to call from the IDL
command line or from another procedure or function should
be in a file of the same name as the command in the IDL "path".
If there are multiple procedures and functions in the file,
then the procedure or function that has the same name as the file
should be the LAST procedure or function in the file.

If a procedure or function is in a file, but it does NOT
have the same name as the file, then you can generally assume
this is a utility routine for the procedure or function that
*does* have the same name as the file. That is to say, no one
plans to use that "command" outside of this file. If it were
found to be more useful than just a utility routine, it would
be yanked out of that file and put in another file that
was named appropriately.

In this way, you NEVER have to worry about things being
compiled when they are needed.

> any suggestions would be most welcome

Have you thought about a good book about IDL? :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: tvrd and device,decomposed=0
Next Topic: Re: Object Rubberband Selection Box

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

Current Time: Wed Oct 08 18:52:52 PDT 2025

Total time taken to generate the page: 0.00401 seconds