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
|
|
|
Re: routine_names [message #8983 is a reply to message #979] |
Fri, 16 May 1997 00:00  |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
R. Bauer <r.bauer@fz-juelich.de> writes in an increasingly
desperate way:
> I found in gethelp a function named routine_names, e.g.
> varnames=routine_names(variables=-1)
>
> This function finds the variables which are known by idl.
> Unfortunately, there is no description about the syntax available.
>
> May be the error
>
> Internal error: VAR_COPY, dynamic bit not set.
>
> comes by using this function during using call external with fortran
> code.
>
> Is there somebody who can help me?
I don't think there is anyone who can help you. VAR_COPY comes
from deep in IDL somewhere. The indications are that this is
pretty clearly a bug. If I have some time today I'll try it in
IDL 5.0.
Cheers,
David
----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
Customizable IDL Programming Courses
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
|
|
|