0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 9.0.2019: Vim9: no support for funcrefs

Problem:  Vim9: no support for funcrefs
Solution: Add support for object/class funcref members

closes: #11981 #12417 #12960 #12324 #13333

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
Yegappan Lakshmanan
2023-10-14 11:18:50 +02:00
committed by Christian Brabandt
parent 69fb5afb3b
commit 29bb67f1be
15 changed files with 742 additions and 51 deletions

View File

@@ -1384,6 +1384,7 @@ generate_FUNCREF(
cctx_T *cctx,
ufunc_T *ufunc,
class_T *cl,
int object_method,
int fi,
int *isn_idx)
{
@@ -1412,6 +1413,7 @@ generate_FUNCREF(
{
extra->fre_class = cl;
++cl->class_refcount;
extra->fre_object_method = object_method;
extra->fre_method_idx = fi;
}
}