> Internally a list with a NULL pointer is supposed to be handled like an
> empty list. This is efficient, but tricky. Nikolai just sent a patch,
> hopefully that helps.
Good, but I wonder if it is not better for getreg("a",1,1) to always return a
mutable list (an empty mutable list in this case)? Because as it returns a
mutable list for a register with contents ( setreg("a",'x') ) or an empty one (
setreg("a",'') ) a plugin writer might come to expect that it always returns a
fresh mutable list, but this then fails for an undefined register (
setreg("a",[]) ). Isn't API consistency better that a little bit of efficiency,
in this case?
--
--
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].
For more options, visit https://groups.google.com/d/optout.