Yasuhiro Matsumoto wrote:

> 'for' is skipping block when reach at 'endfor'. but it get E15(invalid 
> expression) in following code.
> 
> -----
> function! s:do(...)
>   echomsg 's:do()'
> endfunction
> function! s:run()
>   let obj = {'do': function('s:do')}
>   for method in ['do']
>     call obj[method]()
>   endfor
> endfunction
> call s:run()
> -----
> 
> vim is skipping code like following.
> 
> call
> obj
> ['do']
> ...
> 
> And it return empty value when code is passing under ['do'] for 'call' 
> command.
> It must avoid to occur E15.
> 
> https://gist.github.com/1244902

Another one for the todo list.  Thanks!


-- 
One difference between a man and a machine is that a machine is quiet
when well oiled.

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

Raspunde prin e-mail lui