Re: optional argument for function / procedure

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 04 2013 - 09:11:14 MST

Hi folks,

This has been on our list of things to do for awhile (ticket #NCL-290), but it's not a trivial feature to add.

I will add your emails to the ticket to help support its popularity. :-)

--Mary

On Mar 4, 2013, at 7:30 AM, yagnesh@lowtem.hokudai.ac.jp wrote:

>
> [May not add anything useful to the discussion, just my opinion.]
>
> Hello Brücher,
>
> On Mar 04 2013, Brücher Tim <tim.bruecher@zmaw.de> wrote:
>
>> Oli, thanks for your fast reply...
>>
>> but I would favour a definition of a subroutine or function which could deal with:
>>
>>
>> mytest(var1)
>>
>> or:
>>
>> mytest(var1,MyOption1=xxx,MyOption2=zzz)
>>
>> or:
>>
>> mytest(var1,MyOption2=zzz)
>
> I also wish for such a ncl option just like python (named arguments/optional
> arguments), but If I understand correctly, Its not that easy to implement. I
> also doubt that It is worth of a trouble since there is a workaround available
> and more over there is PyNGL/PyNIO.
>
> I am also interested to hear from the developers about this.
>
> Thanks.,
> YYR
> _______________________________________________
> 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 4 09:11:26 2013

This archive was generated by hypermail 2.1.8 : Thu Mar 07 2013 - 08:55:58 MST