Re: retrieving function/procedure's name

From: Saji Njarackalazhikam Hameed <saji_at_nyahnyahspammersnyahnyah>
Date: Mon, 30 Jul 2007 23:22:48 +0900

Thanks Mary,

NCL seems to be keeping track of function names internally, for
it can point to functions with incorrect codes and also their
ancestors when something goes wrong.

I was trying to implement a visual progress meter for our
automated system by having NCL output some GraphViz code
everytime it enters a function/procedure..It would be
easy to implement it if I could say

        "writeGraphVizLog("$0",filename)"

instead of

        "writeGraphVizLog("thisFunction",filename)"

But anyway, this is
not important at all - thanks for replying.

maybe a good time for a wish list (none of these
are terribly important though )...

would be nice if NCL had a command to read in strings from the
standard input... something like a read(*,*) statement in fortran.

would be nice to if users could use Object Oriented facets of NCL
in an easy way..esp. it would
be nice if we could easily use OO ideas like inheritance etc..

cheers,

saji

* Mary Haley <haley_at_ucar.edu> [2007-07-30 07:49:54 -0600]:

> Saji,
>
> I'm afraid there's no way to do this. I will find out if this is something
> that should be added to our "to do" list.
>
> --Mary
>
> On Jul 29, 2007, at 1:25 AM, Saji Njarackalazhikam Hameed wrote:
>
>> Dear All,
>>
>> Does the NCL scripting language have capability to retrieve
>> the name of say a function/procedure when we are within
>> that function..
>>
>> something like, say
>>
>> function myfunction()
>> begin
>> print("My name is "+$0)
>> end
>>
>> should print -> "myfunction"
>>
>> saji
>>
>> --
>> Saji N. Hameed
>>
>> APEC Climate Center +82 51 668 7470
>> National Pension Corporation Busan Building 12F
>> Yeonsan 2-dong, Yeonje-gu, BUSAN 611705 saji_at_apcc21.net
>> KOREA
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk_at_ucar.edu
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
Saji N. Hameed
APEC Climate Center          				+82 51 668 7470
National Pension Corporation Busan Building 12F         
Yeonsan 2-dong, Yeonje-gu, BUSAN 611705			saji_at_apcc21.net
KOREA
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Jul 30 2007 - 08:22:48 MDT

This archive was generated by hypermail 2.2.0 : Wed Aug 01 2007 - 08:50:33 MDT