Re: about local variable in defined function and procedure

From: Jatin Kala <jatin.kala.jk_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 17 2014 - 00:10:25 MDT

This is explained here:
http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclStatements.shtml
Search for: "The local statement and function and procedure scope"

Those functions which do not have local variables declared, are probably
for the few functions which do Not define anything new within the
function, i.e., there is No "x=" within the function (hopefully).

On 17/03/14 4:51 PM, wen wrote:
> Hi ncl-users and Dennis,
> I recently define ncl-fuction and procedure by myself to faciliate
> my processing. I don't think I am familar with the local variable. I
> find that some functions and procedures pre-defined in
> "contributed.ncl" and others do not have local variable, but some do.
> I am wandering when the function or procedure should have local
> variable. Could you give me some examples to show the necessary to
> define local variable in a function or procedure. Thank you!
>
>
>
>
> --
> Best regards
> Guanhuan Wen
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 17 00:10:41 2014

This archive was generated by hypermail 2.1.8 : Fri Mar 21 2014 - 15:49:21 MDT