Wednesday, July 6, 2011

Aw: Re: vim function not first-class variable? how to create an alias for vim function ?



Am Dienstag, 5. Juli 2011 10:41:23 UTC+2 schrieb MarcWeber:
Excerpts from pansz's message of Tue Jul 05 10:24:05 +0200 2011:
> I want to do some coding like this:

let F = function('Foobar')

call call(F, [arg1, arg2], { optional self dict })

One caveat though, IIRC if F refers to a script local function, it cannot be called from outside of the script context.

This makes me wonder if there is a usecase, where the first argument to call() has to be a Funcref and cannot be a string (the name of a function).

Regards,
Tom

--
You received this message from the "vim_use" 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

No comments: