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

Home » Public Forums » archive » What subprogram? What parameters and keywords?
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: What subprogram? What parameters and keywords? [message #85637 is a reply to message #85636] Fri, 23 August 2013 05:52 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mats Löfdahl writes:

> Let's say IDL has just entered a subroutine or function. Is any of the following information available?
>
> 1. The name of the subprogram (like $0 in bash)
> 2. The parameters as an array or struct or similar (kind of like $*), preferably including keywords.

You can find two useful programs in the Coyote Library. WhoAmI returns
the name of the program module the WhoAmI program is called in, and
WhoCalledMe identifies the name of the program module that called the
routine you are now in.

There is no parameter stack that I am aware of, although it wouldn't
surprise me if the Scope_*** routines could figure it out.

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: operating on tab-/comma-delimited files
Next Topic: concatenating strings

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

Current Time: Wed Oct 08 19:25:01 PDT 2025

Total time taken to generate the page: 0.00572 seconds