Update runtime files

This commit is contained in:
Bram Moolenaar
2021-09-21 20:09:51 +02:00
parent 690c524ce6
commit 34cc7d8c03
20 changed files with 379 additions and 114 deletions

View File

@ -1,4 +1,4 @@
*vim9.txt* For Vim version 8.2. Last change: 2021 Sep 08
*vim9.txt* For Vim version 8.2. Last change: 2021 Sep 13
VIM REFERENCE MANUAL by Bram Moolenaar
@ -180,6 +180,15 @@ For now you will need to pass the dictionary explicitly: >
var d = {item: 'value', func: DictFunc}
d.func(d, 'item')
You can call a legacy dict function though: >
func Legacy() dict
echo self.value
endfunc
def CallLegacy()
var d = {func: Legacy, value: 'text'}
d.func()
enddef
The argument types and return type need to be specified. The "any" type can
be used, type checking will then be done at runtime, like with legacy
functions.