summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-08-12 21:34:49 +0200
committerBram Moolenaar <Bram@vim.org>2020-08-12 21:34:49 +0200
commit418f1df54763b79600db1c91c880fbc1007b2e1f (patch)
tree5ffaf68d304881ef490608d00e4a1ed4df04ed4a /runtime
parentfd77748df2ba7d5f38aab649cb630374620462d7 (diff)
downloadvim-git-418f1df54763b79600db1c91c880fbc1007b2e1f.tar.gz
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakesv8.2.1435
Problem: Vim9: always converting to string for ".." leads to mistakes. Solution: Only automatically convert simple types.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/vim9.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/runtime/doc/vim9.txt b/runtime/doc/vim9.txt
index 7c4a64f97..f9fd1367d 100644
--- a/runtime/doc/vim9.txt
+++ b/runtime/doc/vim9.txt
@@ -426,11 +426,14 @@ The boolean operators "||" and "&&" do not change the value: >
2 && 0 == 0
[] && 2 == []
-When using `..` for string concatenation the arguments are always converted to
-string. >
+When using `..` for string concatenation arguments of simple types are always
+converted to string. >
'hello ' .. 123 == 'hello 123'
'hello ' .. v:true == 'hello true'
+Simple types are string, float, special and bool. For other types |string()|
+can be used.
+
In Vim9 script one can use "true" for v:true and "false" for v:false.
@@ -805,6 +808,9 @@ actually needed. A recommended mechanism:
...
< This goes in .../import/someother.vim.
+When compiling a `:def` function and a function in an autoload script is
+encountered, the script is not loaded until the `:def` function is called.
+
Import in legacy Vim script ~