> How about using a wrapper function for an autoloaded function as follows?
> 
>   " in plugin/foo.vim
>   function WrapperFunction(...)
>     return call('original#function', a:000)
>   endfunction
> 
>   " in someone's vimrc
>   let FuncRef = function('WrapperFunction')
no way. much too complicated. I won't create a wrapper function in each
case I'd like to create a funcref

> If you don't have to use funcrefs, there is another way which
> uses the name of a function instead of a reference for it, as follows:
> 
>   let funcname = 'original#function'
>   call {funcname}()  "==> same as :call original#function()
That might have been an option if I had known about it earlier.

Thanks for your input!
Marc

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

Raspunde prin e-mail lui