Check this out:
:let mydict = {"foo": "bar"}
:echo mydict.foo
bar
" This doesn't work:
:echo {"mydict.foo"}
E121: Undefined variable: mydict.foo
E15: Invalid expression: {"mydict.foo"}
:let varname = "mydict.foo"
:echo {varname}
E121: Undefined variable: mydict.foo
E15: Invalid expression: {varname}
:let workaround = mydict.foo
:echo {"workaround"}
bar
I'm not sure whether this really is a bug. Are dict members supposed to
have the same status as variable-value pairs?
--
Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---