Re: optional argument for function / procedure

From: <yagnesh_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 04 2013 - 07:30:40 MST

[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
Received on Mon Mar 4 07:36:24 2013

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