The argument of the "func" command is a function name, not an
expression. You are passing a variable, which is an expression.
There is a trick you can use: Assign the function reference to a global
variable. Function names exist in the global namespace where the global
variable can also be found:
def g:LambdaText(Op: func(): number): void
g:ThatFunction = Op
func g:ThatFunction
unlet g:ThatFunction
enddef
--
Be thankful to be in a traffic jam, because it means you own a car.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///