On Wed, Apr 20, 2011 at 7:15 PM, Ben Schmidt <[email protected]> wrote: > On 21/04/11 10:10 AM, Ben Fritz wrote: >> >> 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. > > How? > > Ben. >
Oops nevermind, I missed the part where the list remained empty even after setting the element to a value. I did not read carefully enough and was apparently thinking of Perl. I'd consider it a bug. -- 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
