diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-07-18 11:22:43 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-07-18 11:22:43 -0400 |
commit | 77937c4edd0e559ec66811ea20b103c329627a83 (patch) | |
tree | 7da1dec833786ea544ee4bd60c0767e6dae66dab /runtime/doc | |
parent | 1d8a07615714345769e6932850b83b180e697008 (diff) | |
parent | 9c3bd3e427686855a8e75403d1715dd4b99ffa8a (diff) | |
download | rneovim-77937c4edd0e559ec66811ea20b103c329627a83.tar.gz rneovim-77937c4edd0e559ec66811ea20b103c329627a83.tar.bz2 rneovim-77937c4edd0e559ec66811ea20b103c329627a83.zip |
Merge #5058
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/eval.txt | 15 |
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 |