aboutsummaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorPatrick <patrick@bitscope.com>2016-07-13 16:49:22 +1000
committerPatrick <patrick@bitscope.com>2016-07-13 17:47:46 +1000
commita3dc7ef44577dc4708ac7b4c329c1620770aadc3 (patch)
tree7ad18fa84753c5c5302e74f949cd0581b5c4ea58 /runtime/doc
parentdcbd1c7b13e98766754c4e75d3bb59021248217e (diff)
downloadrneovim-a3dc7ef44577dc4708ac7b4c329c1620770aadc3.tar.gz
rneovim-a3dc7ef44577dc4708ac7b4c329c1620770aadc3.tar.bz2
rneovim-a3dc7ef44577dc4708ac7b4c329c1620770aadc3.zip
vim-patch:7.4.1546
Problem: Sticky type checking is more annoying than useful. Solution: Remove the error for changing a variable type. https://github.com/vim/vim/commit/f6f32c38bf3319144a84a01a154c8c91939e7acf Note: There are a bunch of other changes to eval.txt that I believe are N/A and not related to this patch.
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt15
1 files changed, 3 insertions, 12 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 0ca41370e9..efb8da0cfa 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -103,18 +103,9 @@ to Float, printf() for Float to String and float2nr() for Float to Number.
*E891* *E892* *E893* *E894*
When expecting a Float a Number can also be used, but nothing else.
- *E706* *sticky-type-checking*
-You will get an error if you try to change the type of a variable. You need
-to |:unlet| it first to avoid this error. String and Number are considered
-equivalent though, as well are Float and Number. Consider this sequence of
-commands: >
- :let l = "string"
- :let l = 44 " changes type from String to Number
- :let l = [1, 2, 3] " error! l is still a Number
- :let l = 4.4 " changes type from Number to Float
- :let l = "string" " error!
-
-
+ *no-type-checking*
+You will not get an error if you try to change the type of a variable.
+
1.2 Function references ~
*Funcref* *E695* *E718*
A Funcref variable is obtained with the |function()| function. It can be used