comparison src/vim.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 5c1b7a87466e
comparison
equal deleted inserted replaced
31415:4fd33db887f2 31416:f088f1d97eee
2674 #define TFN_NO_DEREF 0x08 // do not dereference a Funcref 2674 #define TFN_NO_DEREF 0x08 // do not dereference a Funcref
2675 #define TFN_READ_ONLY 0x10 // will not change the var 2675 #define TFN_READ_ONLY 0x10 // will not change the var
2676 #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL 2676 #define TFN_NO_DECL 0x20 // only used for GLV_NO_DECL
2677 #define TFN_COMPILING 0x40 // only used for GLV_COMPILING 2677 #define TFN_COMPILING 0x40 // only used for GLV_COMPILING
2678 #define TFN_NEW_FUNC 0x80 // defining a new function 2678 #define TFN_NEW_FUNC 0x80 // defining a new function
2679 #define TFN_ASSIGN_WITH_OP 0x100 // only for GLV_ASSIGN_WITH_OP 2679 #define TFN_ASSIGN_WITH_OP 0x100 // only for GLV_ASSIGN_WITH_OP
2680 #define TFN_IN_CLASS 0x200 // function in a class
2680 2681
2681 // Values for get_lval() flags argument: 2682 // Values for get_lval() flags argument:
2682 #define GLV_QUIET TFN_QUIET // no error messages 2683 #define GLV_QUIET TFN_QUIET // no error messages
2683 #define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading 2684 #define GLV_NO_AUTOLOAD TFN_NO_AUTOLOAD // do not use script autoloading
2684 #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var 2685 #define GLV_READ_ONLY TFN_READ_ONLY // will not change the var