comparison src/vim9.h @ 30584:ee039a6049ff v9.0.0627

patch 9.0.0627: "const" and "final" both make the type a constant Commit: https://github.com/vim/vim/commit/6586a015144f15a979d573a79d91e700e4b3009f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 30 11:04:50 2022 +0100 patch 9.0.0627: "const" and "final" both make the type a constant Problem: "const" and "final" both make the type a constant. (Daniel Steinberg) Solution: Only have "const" make the type a constant.
author Bram Moolenaar <Bram@vim.org>
date Fri, 30 Sep 2022 12:15:04 +0200
parents fc0830246f49
children d914a3812d5b
comparison
equal deleted inserted replaced
30583:fc88f4597670 30584:ee039a6049ff
695 type_T *lv_type; 695 type_T *lv_type;
696 int lv_idx; // index of the variable on the stack 696 int lv_idx; // index of the variable on the stack
697 int lv_loop_depth; // depth for variable inside a loop or -1 697 int lv_loop_depth; // depth for variable inside a loop or -1
698 int lv_loop_idx; // index of first variable inside a loop or -1 698 int lv_loop_idx; // index of first variable inside a loop or -1
699 int lv_from_outer; // nesting level, using ctx_outer scope 699 int lv_from_outer; // nesting level, using ctx_outer scope
700 int lv_const; // when TRUE cannot be assigned to 700 int lv_const; // ASSIGN_VAR (can be assigned to),
701 // ASSIGN_FINAL (no assignment) or ASSIGN_CONST
702 // (value cannot be changed)
701 int lv_arg; // when TRUE this is an argument 703 int lv_arg; // when TRUE this is an argument
702 } lvar_T; 704 } lvar_T;
703 705
704 // Destination for an assignment or ":unlet" with an index. 706 // Destination for an assignment or ":unlet" with an index.
705 typedef enum { 707 typedef enum {