summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-26 17:43:08 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-26 17:43:08 +0100
commitcdc40c43f1008bda2f173d3a13606236679e8067 (patch)
tree8011e2a4138c2596e318f2a8798eebea481fb6ad /runtime
parent2b32700dabf392566d8e9fef76e0d587a891ee3e (diff)
patch 8.2.2223: Vim9: Reloading marks a :def function as deletedv8.2.2223
Problem: Vim9: Reloading marks a :def function as deleted. Solution: Clear the function contents but keep the index.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9.txt17
1 files changed, 0 insertions, 17 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index dd8cd61f20..d1d3194e20 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -219,23 +219,6 @@ some point when loaded again. E.g. when a buffer local option is set: >
def g:SomeFunc()
....
-There is one gotcha: If a compiled function is replaced and it is called from
-another compiled function that is not replaced, it will try to call the
-function from before it was replaced, which no longer exists. This doesn't
-work: >
- vimscript noclear
-
- def ReplaceMe()
- echo 'function redefined every time'
- enddef
-
- if exists('s:loaded') | finish | endif
- var s:loaded = true
-
- def NotReplaced()
- ReplaceMe() # Error if ReplaceMe() was redefined
- enddef
-
Variable declarations with :var, :final and :const ~
*vim9-declaration* *:var*