Skip to content

Commit

Permalink
patch 8.2.0459: cannot check if a function name is correct
Browse files Browse the repository at this point in the history
Problem:    Cannot check if a function name is correct.
Solution:   Add "?funcname" to exists().
  • Loading branch information
brammool committed Mar 26, 2020
1 parent bea9023 commit 15c4760
Show file tree
Hide file tree
Showing 5 changed files with 308 additions and 214 deletions.
8 changes: 6 additions & 2 deletions runtime/doc/eval.txt
Expand Up @@ -4102,8 +4102,12 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is defined,
string)
*funcname built-in function (see |functions|)
or user defined function (see
|user-functions|). Also works for a
variable that is a Funcref.
|user-functions|) that is implemented.
Also works for a variable that is a
Funcref.
?funcname built-in function that could be
implemented; to be used to check if
"funcname" is valid
varname internal variable (see
|internal-variables|). Also works
for |curly-braces-names|, |Dictionary|
Expand Down

0 comments on commit 15c4760

Please sign in to comment.