Yukihiro Nakadaira wrote:
> The following code causes an error "E15: Invalid expression: d["f"]()".
>
> let d = {}
>
> function d.f()
> echo "f()"
> endfunction
>
> if 0
> call d["f"]()
> endif
>
> " or
>
> for i in [1]
> call d["f"]()
> endfor
I can reproduce it. Strange, echo d["f"]() does work.
--
Amnesia is one of my favorite words, but I forgot what it means.
/// 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