ROUTINE_NAMES [message #979] |
Mon, 19 April 1993 00:11  |
landsman
Messages: 93 Registered: August 1991
|
Member |
|
|
I notice that the IDL V3.0 User library procedures PWIDGET, GLOBEROT, and
WORLDROT call an intrinsic IDL function called ROUTINE_NAMES. I cannot
find any online or printed documentation for ROUTINE_NAMES.
I suppose that one should not depend on this routine until RSI makes it
official by documenting it, but I am intrigued by what ROUTINE_NAMES does.
Here's what I've been able to find out so far:
IDL> print, ROUTINE_NAMES()
prints the names of all compiled IDL procedures
IDL> print, ROUTINE_NAMES(/LEVEL)
appears to print 1 if the user at the main level, 2 if inside a called
procedure, etc.
In PWIDGET there is call that is something like this
IDL> print,ROUTINE_NAMES('X',FETCH=2)
and I haven't figure out what it does, or how to make an example work outside
of PWIDGET. It appears to grab a variable called X from another procedure
-- perhaps this is a fancy alternative for common blocks? Maybe somebody
out there is a better hacker than I am, and can figure this out.
--Wayne Landsman landsman@stars.gsfc.nasa.gov
|
|
|