0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.1123: class function not implemented yet

Problem:    Class function not implemented yet.
Solution:   Implement defining and calling a class function.
This commit is contained in:
Bram Moolenaar
2023-01-01 12:58:33 +00:00
parent 9f2d97efe2
commit 6bafdd41cb
6 changed files with 174 additions and 72 deletions

View File

@@ -1493,9 +1493,9 @@ struct class_S
ocmember_T *class_class_members; // allocated
typval_T *class_members_tv; // allocated array of class member vals
// class methods: "static def SomeMethod()"
int class_class_method_count;
ufunc_T **class_class_methods; // allocated
// class functions: "static def SomeMethod()"
int class_class_function_count;
ufunc_T **class_class_functions; // allocated
// object members: "this.varname"
int class_obj_member_count;