Yukihiro Nakadaira wrote:
> Bram Moolenaar wrote:
> >
> > Patch 7.3.146
> > Problem: It's possible to assign to a read-only member of a dict.
> > It's possible to create a global variable "0". (ZyX)
> > It's possible to add a v: variable with ":let v:.name = 1".
> > Solution: Add check for dict item being read-only.
> > Check the name of g: variables.
> > Disallow adding v: variables.
> > Files: src/eval.c
>
> It is still possible to create such variable with extend().
>
>
> call extend(g:, {"f":function('printf')})
> echo f('%s', 'this is printf')
>
> call extend(g:, {"0":0})
> echo g:0
>
> call extend(v:, {"x":1})
> echo v:x
Another thing to fix...
--
For large projects, Team Leaders use sophisticated project management software
to keep track of who's doing what. The software collects the lies and guesses
of the project team and organizes them in to instantly outdated charts that
are too boring to look at closely. This is called "planning".
(Scott Adams - The Dilbert principle)
/// Bram Moolenaar -- [email protected] -- 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 ///
--
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