Home »
Public Forums »
archive »
Re: How does IDL find functions?
Re: How does IDL find functions? [message #44453 is a reply to message #44449] |
Fri, 17 June 2005 15:20  |
Benjamin Hornberger
Messages: 258 Registered: March 2004
|
Senior Member |
|
|
robertschaefer@gmx.de wrote:
> Hello IDL community,
>
> I'm looking for a smart solution to find functions from my own lib
> inside a self written function or procedure.
> The idea is to get a tree of embedded self written functions.
>
> My solution looks like this but I think there must be an easier way:
>
> -generate a list of functions in user-lib
> -Read the function where to search (openr)
> -compare each line (string) with the list of lib functions
> (how to extract function names egantly? -> strsplit with '=*(' :
> definitely not)
> -save coincide functions (strings) and go on searching into found
> functions
>
> Does anybody (I'm sure ;-) ) know how IDL find functions on compiling?
> This may be exactly the right (fast) way...
>
> Any ideas? ...Thanks for help...
>
> Best regards
>
> robert
>
I'm not quite sure what you want to do, but if the question is just how
IDL finds procedures and functions to compile, the following article
will tell you:
http://www.dfanning.com/tips/namefiles.html
If you want to determine the directory in which a function or procedure
was found:
http://www.dfanning.com/documents/programs.html#PROGRAMROOTD IR
The FILE_WHICH() function is also useful.
In general, you always want to put IDL program files into the IDL path.
Good luck,
Benjamin
|
|
|
Current Time: Fri Oct 10 12:43:29 PDT 2025
Total time taken to generate the page: 0.32357 seconds