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


--
Yukihiro Nakadaira - yukihiro.nakada...@gmail.com

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

Reply via email to