Andy Wokula wrote:

> 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?

You are using a {} construct for an expression, while it's only to be
used to evaluate to a variable name.  So this works:

        :echo {"mydict"}.foo

The {} construct is a thing of the past, it's better to use eval() now.

-- 
hundred-and-one symptoms of being an internet addict:
245. You use Real Audio to listen to a radio station from a distant
     city rather than turn on your stereo system.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui