I was surprised that this works to append to a list

   vim9script

   var l2 = []
   l2[0] = 3
   echo l2

   l2 = [1, 2, 3]
   l2[3] = 4
   echo l2

Unless a recent change introduced this bug, it probably shouldn't be fixed.

Should it be documented?

-ernie

--
--
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/955250f0-753f-d4c6-2fe0-9065dbacaa57%40raelity.com.

Raspunde prin e-mail lui