diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-02-25 08:40:10 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-25 08:40:10 +0100 |
commit | a2ebb6e9176d007c11804bb9784beee35a8050c8 (patch) | |
tree | df9b8d699618e412ad674dc10802a2f0672c6012 /runtime/doc | |
parent | 374e26aba2e5e0a220b1a7ce1934b0eb5f493e6c (diff) |
patch 9.1.0136: Vim9: need more test for exists()v9.1.0136
methods
Problem: Vim9: need more test for exists()
Solution: Add test for exists() with class/objct variables and methods
(Yegappan Lakshmanan)
closes: #14088
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/builtin.txt | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 849b1808f1..0af9b0e0f7 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -1,4 +1,4 @@ -*builtin.txt* For Vim version 9.1. Last change: 2024 Feb 24 +*builtin.txt* For Vim version 9.1. Last change: 2024 Feb 25 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2405,11 +2405,11 @@ exists({expr}) The result is a Number, which is |TRUE| if {expr} is defined, varname internal variable (see dict.key |internal-variables|). Also works list[i] for |curly-braces-names|, |Dictionary| - import.Func entries, |List| items, imported - items, etc. - Does not work for local variables in a - compiled `:def` function. - Also works for a function in |Vim9| + import.Func entries, |List| items, class and + class.Func object methods, imported items, etc. + object.Func Does not work for local variables in a + class.varname compiled `:def` function. + object.varname Also works for a function in |Vim9| script, since it can be used as a function reference. Beware that evaluating an index may |