On Apr 19, 4:40 am, Yukihiro Nakadaira <[email protected]>
wrote:
> When assigning or deleting list item no error raised for out-of-range index.
>
>    :let list = []
>    :let list[0] = 0
>    :echo list
>    []
>
>    :let list = []
>    :unlet list[0]
>
> I expected "E684: list index out of range: 0" or similar error.
>

This one is a feature. It lets you easily grow a list.

-- 
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

Raspunde prin e-mail lui