Minor update to todo.txt

11 views
Skip to first unread message

Yegappan Lakshmanan

unread,
Feb 8, 2020, 12:37:41 PM2/8/20
to vim_dev
Hi,

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)

- Yegappan

Bram Moolenaar

unread,
Feb 8, 2020, 1:39:48 PM2/8/20
to vim...@googlegroups.com, Yegappan Lakshmanan
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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages