Mercurial > vim
comparison src/vim9.h @ 31416:f088f1d97eee v9.0.1041
patch 9.0.1041: cannot define a method in a class
Commit: https://github.com/vim/vim/commit/ffdaca9e6f3d39af6857ac52ced9385df203a152
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 9 21:41:48 2022 +0000
patch 9.0.1041: cannot define a method in a class
Problem: Cannot define a method in a class.
Solution: Implement defining an object method. Make calling an object
method work.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 09 Dec 2022 22:45:03 +0100 |
parents | 307f68a41b03 |
children | e31fc75f6aff |
comparison
equal
deleted
inserted
replaced
31415:4fd33db887f2 | 31416:f088f1d97eee |
---|---|
31 ISN_SUBSTITUTE, // :s command with expression | 31 ISN_SUBSTITUTE, // :s command with expression |
32 | 32 |
33 ISN_SOURCE, // source autoload script, isn_arg.number is the script ID | 33 ISN_SOURCE, // source autoload script, isn_arg.number is the script ID |
34 ISN_INSTR, // instructions compiled from expression | 34 ISN_INSTR, // instructions compiled from expression |
35 ISN_CONSTRUCT, // construct an object, using contstruct_T | 35 ISN_CONSTRUCT, // construct an object, using contstruct_T |
36 ISN_OBJ_MEMBER, // object member, index is isn_arg.number | |
36 | 37 |
37 // get and set variables | 38 // get and set variables |
38 ISN_LOAD, // push local variable isn_arg.number | 39 ISN_LOAD, // push local variable isn_arg.number |
39 ISN_LOADV, // push v: variable isn_arg.number | 40 ISN_LOADV, // push v: variable isn_arg.number |
40 ISN_LOADG, // push g: variable isn_arg.string | 41 ISN_LOADG, // push g: variable isn_arg.string |