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

Home » Public Forums » archive » Discover the name (at calling level) of passed parameter
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Discover the name (at calling level) of passed parameter [message #34005] Tue, 11 February 2003 05:07
Kristian Kjaer is currently offline  Kristian Kjaer
Messages: 58
Registered: June 1998
Member
I sometimes find myself wanting to know the name of a passed parameter:
At the called procedure level I need to know the name that the parameter
had at the calling level.

The code below illustrates what I can_not_ do by simple means.
Are there any dirty tricks I could emply to this end?

Thanks for any pointers, Kristian

; --------- begin IDL code:
pro test_par_name, p
help,p
print ,'The name of the passed parameter was ','?',' and its value is
',p
end

; --------- begin IDL command history:
IDL> q=5D
IDL> test_par_name,q
P DOUBLE = 5.0000000
The name of the passed parameter was ? and its value is 5.0000000

; --------- begin wish list:
; I'd like somehow to be able to get:
Q DOUBLE = 5.0000000
The name of the passed parameter was Q and its value is 5.0000000


-------------------------
Kristian Kjær, Risø National Laboratory, Denmark
[Message index]
 
Read Message
Previous Topic: Printing LIVEPLOT plots....
Next Topic: drawing a single point in 3-D

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

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

Total time taken to generate the page: 0.00468 seconds