comparison src/vim.h @ 22391:a9fb7efa31d6 v8.2.1744

patch 8.2.1744: Vim9: using ":const!" is weird Commit: https://github.com/vim/vim/commit/30fd8204cecb317d842b964d624d492088d6d15f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 26 15:09:30 2020 +0200 patch 8.2.1744: Vim9: using ":const!" is weird Problem: Vim9: using ":const!" is weird. Solution: Use "var" - "final" - "const" like Dart. "let" still works for now.
author Bram Moolenaar <Bram@vim.org>
date Sat, 26 Sep 2020 15:15:05 +0200
parents eb1f5f618c75
children 1cefe1c013ac
comparison
equal deleted inserted replaced
22390:ee56fb5ea218 22391:a9fb7efa31d6
2133 ESTACK_SFILE, 2133 ESTACK_SFILE,
2134 ESTACK_STACK 2134 ESTACK_STACK
2135 } estack_arg_T; 2135 } estack_arg_T;
2136 2136
2137 // Flags for assignment functions. 2137 // Flags for assignment functions.
2138 #define LET_IS_CONST 1 // ":const" 2138 #define ASSIGN_FINAL 1 // ":final"
2139 #define LET_FORCEIT 2 // ":const!" (LET_IS_CONST is also set) 2139 #define ASSIGN_CONST 2 // ":const"
2140 #define LET_NO_COMMAND 4 // "var = expr" without ":let" or ":const" 2140 #define ASSIGN_NO_DECL 4 // "name = expr" without ":let" or ":const"
2141 2141
2142 #include "ex_cmds.h" // Ex command defines 2142 #include "ex_cmds.h" // Ex command defines
2143 #include "spell.h" // spell checking stuff 2143 #include "spell.h" // spell checking stuff
2144 2144
2145 #include "proto.h" // function prototypes 2145 #include "proto.h" // function prototypes