comparison src/vim9execute.c @ 33951:45a50fd59a73 v9.0.2170

patch 9.0.2170: Vim9: no support for const/final class/objects vars Commit: https://github.com/vim/vim/commit/e5437c542709b77ade084f96e60d84d4e847e6d3 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sat Dec 16 14:11:19 2023 +0100 patch 9.0.2170: Vim9: no support for const/final class/objects vars Problem: Vim9: no support for const/final class/objects vars Solution: Support final and const object and class variables closes: #13655 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Dec 2023 14:15:05 +0100
parents bdd408288d95
children ab6a70fad5b5
comparison
equal deleted inserted replaced
33950:ba10efba5843 33951:45a50fd59a73
4453 tv->v_lock = 0; 4453 tv->v_lock = 0;
4454 } 4454 }
4455 else 4455 else
4456 { 4456 {
4457 *tv = *STACK_TV_VAR(0); 4457 *tv = *STACK_TV_VAR(0);
4458 ++tv->vval.v_object->obj_refcount; 4458 object_T *obj = tv->vval.v_object;
4459 ++obj->obj_refcount;
4460
4461 // Lock all the constant object variables
4462 obj_lock_const_vars(obj);
4459 } 4463 }
4460 // FALLTHROUGH 4464 // FALLTHROUGH
4461 4465
4462 // return from a :def function call with what is on the stack 4466 // return from a :def function call with what is on the stack
4463 case ISN_RETURN: 4467 case ISN_RETURN: