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

Home » Public Forums » archive » Re: Reading Others Code
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Reading Others Code [message #60527] Mon, 26 May 2008 03:39 Go to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning schrieb:
> Folks,
>
> A friend of mine and I have been reading each others
> IDL code lately. It's truly amazing what you can learn
> by doing this!
>
> Anyway, I have this line of code in one of my programs:
>
> HELP, CALLS=callstack

it is quite old R. Sterner, 1995 May 23 used it in whocalledme
http://tinyurl.com/5e5vje

Since 7.0

I often added cd, get_profile_path() which uses it to get the routine
running in it's own dir http://tinyurl.com/6ppkrh and not in the workspace.

cheers
Reimar
Re: Reading Others Code [message #60529 is a reply to message #60527] Mon, 26 May 2008 03:33 Go to previous messageGo to next message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning schrieb:
> Folks,
>
> A friend of mine and I have been reading each others
> IDL code lately. It's truly amazing what you can learn
> by doing this!
>
> Anyway, I have this line of code in one of my programs:
>
> HELP, CALLS=callstack
>
> He was flabbergasted. Apparently, this keyword is not
> documented. I'm dumbfounded, too, since I don't usually
> use undocumented code.
>
> Here is my question. Was this ever documented? Does
> anyone else know about this?
>


I think it was documented

I do use it in [[ http://tinyurl.com/6rg5dl | call_help ]]

The result of this function is the text below CALLING SEQUENCE from a
called routine


quite usefulll

cheers
Reimar
Re: Reading Others Code [message #60558 is a reply to message #60529] Thu, 22 May 2008 12:55 Go to previous messageGo to next message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
On May 22, 1:25 pm, David Fanning <n...@dfanning.com> wrote:
> A friend of mine and I have been reading each others
> IDL code lately. It's truly amazing what you can learn
> by doing this!
>
> Anyway, I have this line of code in one of my programs:
>
>    HELP, CALLS=callstack
>
> He was flabbergasted. Apparently, this keyword is not
> documented. I'm dumbfounded, too, since I don't usually
> use undocumented code.
>
> Here is my question. Was this ever documented? Does
> anyone else know about this?

I don't know the answer to your question, but it does bring up two
separate issues for me:

1. SCOPE_TRACEBACK is the "approved" way to do this now, but returns
the call stack in reverse order.

2. I recently needed to know the routines that have been added to
IDL since 6.1 (updating the known routines for the TextMate IDL
plugin). It would be nice to not have to install four versions of IDL
to answer these questions. The online help is HTML-based. Why can't I
just look these things up on the ITT VIS website?

> P.S. You can tell this is an old IDL keyword, because
> CALLS obviously stands for "CALLSTACK", and yet you
> can't use "CALLSTACK". This is one of my favorite pet
> peeves about IDL, but I think the programmer who used
> to do this all the time has now moved on.

Yes, I hate this too (my "favorite" is the SUBEXPR keyword to
STREGEX).

Mike
--
www.michaelgalloy.com
Tech-X Corporation
Software Developer II
Re: Reading Others Code [message #60656 is a reply to message #60558] Wed, 28 May 2008 12:32 Go to previous message
Douglas G. Dirks is currently offline  Douglas G. Dirks
Messages: 10
Registered: October 2006
Junior Member
mgalloy@gmail.com wrote:

> On May 22, 1:25 pm, David Fanning <n...@dfanning.com> wrote:
>> A friend of mine and I have been reading each others
>> IDL code lately. It's truly amazing what you can learn
>> by doing this!
>>
>> Anyway, I have this line of code in one of my programs:
>>
>> HELP, CALLS=callstack
>>
>> He was flabbergasted. Apparently, this keyword is not
>> documented. I'm dumbfounded, too, since I don't usually
>> use undocumented code.
>>
>> Here is my question. Was this ever documented? Does
>> anyone else know about this?

The CALLS keyword to HELP was declared obsolete in IDL 6.2,
replaced by the use of SCOPE_TRACEBACK (and probably REVERSE).

Changes like this are noted in the Version History table at the
end of the routine's documentation, at least since IDL 5.6 or so.

> 2. I recently needed to know the routines that have been added to
> IDL since 6.1 (updating the known routines for the TextMate IDL
> plugin). It would be nice to not have to install four versions of IDL
> to answer these questions. The online help is HTML-based. Why can't I
> just look these things up on the ITT VIS website?

There is a chapter in the IDL Reference Guide titled "Obsolete Features"
that lists all of the features *removed* (in the sense that they are
no longer supported or documented). We can look into the possibility of
creating a similar section that collects the history of things *added*
to IDL over time.

Regards,
Doug

----------------
Douglas G. Dirks
IDL Documentation Group * ITT Visual Information Solutions
4990 Pearl East Circle * Boulder, CO 80301
ddirks@ittvis.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: colormap issues
Next Topic: Diverging Color Tables and Image Display

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

Current Time: Wed Oct 08 17:07:14 PDT 2025

Total time taken to generate the page: 0.00973 seconds