comparison src/vim.h @ 33678:7d9d2404a3d4 v9.0.2076

patch 9.0.2076: Vim9: No support for type aliases Commit: https://github.com/vim/vim/commit/ec3cebbd2b6b7583d2f683f5e66345163ec122aa Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Fri Oct 27 19:35:26 2023 +0200 patch 9.0.2076: Vim9: No support for type aliases Problem: Vim9: No support for type aliases Solution: Implement :type command A type definition is giving a name to a type specification. This also known type alias. :type ListOfStrings = list<string> The type alias can be used wherever a built-in type can be used. The type alias name must start with an upper case character. closes: #13407 Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
author Christian Brabandt <cb@256bit.org>
date Fri, 27 Oct 2023 19:45:05 +0200
parents 46d449fd4fe4
children 32bc4c71f8a6
comparison
equal deleted inserted replaced
33677:96debbc2abd9 33678:7d9d2404a3d4
2140 #define VV_SIZEOFINT 102 2140 #define VV_SIZEOFINT 102
2141 #define VV_SIZEOFLONG 103 2141 #define VV_SIZEOFLONG 103
2142 #define VV_SIZEOFPOINTER 104 2142 #define VV_SIZEOFPOINTER 104
2143 #define VV_MAXCOL 105 2143 #define VV_MAXCOL 105
2144 #define VV_PYTHON3_VERSION 106 2144 #define VV_PYTHON3_VERSION 106
2145 #define VV_LEN 107 // number of v: vars 2145 #define VV_TYPE_TYPEALIAS 107
2146 #define VV_LEN 108 // number of v: vars
2146 2147
2147 // used for v_number in VAR_BOOL and VAR_SPECIAL 2148 // used for v_number in VAR_BOOL and VAR_SPECIAL
2148 #define VVAL_FALSE 0L // VAR_BOOL 2149 #define VVAL_FALSE 0L // VAR_BOOL
2149 #define VVAL_TRUE 1L // VAR_BOOL 2150 #define VVAL_TRUE 1L // VAR_BOOL
2150 #define VVAL_NONE 2L // VAR_SPECIAL 2151 #define VVAL_NONE 2L // VAR_SPECIAL
2163 #define VAR_TYPE_CHANNEL 9 2164 #define VAR_TYPE_CHANNEL 9
2164 #define VAR_TYPE_BLOB 10 2165 #define VAR_TYPE_BLOB 10
2165 #define VAR_TYPE_INSTR 11 2166 #define VAR_TYPE_INSTR 11
2166 #define VAR_TYPE_CLASS 12 2167 #define VAR_TYPE_CLASS 12
2167 #define VAR_TYPE_OBJECT 13 2168 #define VAR_TYPE_OBJECT 13
2169 #define VAR_TYPE_TYPEALIAS 15
2168 2170
2169 #define DICT_MAXNEST 100 // maximum nesting of lists and dicts 2171 #define DICT_MAXNEST 100 // maximum nesting of lists and dicts
2170 2172
2171 #define TABSTOP_MAX 9999 2173 #define TABSTOP_MAX 9999
2172 2174