Yegappan wrote:

> Now that optional arguments to user defined functions are
> supported, the following items can be removed from the
> todo list:
> 
> Implement optional arguments for functions.
>     func Foo(start, count = 1 all = 1)
>     call Foo(12)
>     call Foo(12, all = 0)
>     call Foo(12, 15, 0)
> 
> 9   Add optional arguments to user functions:
> :func myFunc(arg1, arg2, arg3 = "blah", arg4 = 17)

Yes, that should work now.

However, named arguments is not implemented yet:
     call Foo(12, all = 0)

I suppose this is less important.

-- 
Don't believe everything you hear or anything you say.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202002081839.018IddPk001113%40masaka.moolenaar.net.

Raspunde prin e-mail lui