Mercurial > vim
comparison src/vim9.h @ 21771:fcf978444298 v8.2.1435
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes
Commit: https://github.com/vim/vim/commit/418f1df54763b79600db1c91c880fbc1007b2e1f
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 21:34:49 2020 +0200
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes
Problem: Vim9: always converting to string for ".." leads to mistakes.
Solution: Only automatically convert simple types.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 21:45:03 +0200 |
parents | 1c4d4aa22b37 |
children | ccad66ac6c3e |
comparison
equal
deleted
inserted
replaced
21770:48e91c319616 | 21771:fcf978444298 |
---|---|
91 ISN_THROW, // pop value of stack, store in v:exception | 91 ISN_THROW, // pop value of stack, store in v:exception |
92 ISN_PUSHEXC, // push v:exception | 92 ISN_PUSHEXC, // push v:exception |
93 ISN_CATCH, // drop v:exception | 93 ISN_CATCH, // drop v:exception |
94 ISN_ENDTRY, // take entry off from ec_trystack | 94 ISN_ENDTRY, // take entry off from ec_trystack |
95 | 95 |
96 // moreexpression operations | 96 // more expression operations |
97 ISN_ADDLIST, | 97 ISN_ADDLIST, |
98 ISN_ADDBLOB, | 98 ISN_ADDBLOB, |
99 | 99 |
100 // operation with two arguments; isn_arg.op.op_type is exptype_T | 100 // operation with two arguments; isn_arg.op.op_type is exptype_T |
101 ISN_OPNR, | 101 ISN_OPNR, |
122 ISN_GETITEM, // push list item, isn_arg.number is the index | 122 ISN_GETITEM, // push list item, isn_arg.number is the index |
123 ISN_MEMBER, // dict[member] | 123 ISN_MEMBER, // dict[member] |
124 ISN_STRINGMEMBER, // dict.member using isn_arg.string | 124 ISN_STRINGMEMBER, // dict.member using isn_arg.string |
125 ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0 | 125 ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0 |
126 ISN_2STRING, // convert value to string at isn_arg.number on stack | 126 ISN_2STRING, // convert value to string at isn_arg.number on stack |
127 ISN_2STRING_ANY, // like ISN_2STRING but check type | |
127 ISN_NEGATENR, // apply "-" to number | 128 ISN_NEGATENR, // apply "-" to number |
128 | 129 |
129 ISN_CHECKNR, // check value can be used as a number | 130 ISN_CHECKNR, // check value can be used as a number |
130 ISN_CHECKTYPE, // check value type is isn_arg.type.tc_type | 131 ISN_CHECKTYPE, // check value type is isn_arg.type.tc_type |
131 ISN_CHECKLEN, // check list length is isn_arg.checklen.cl_min_len | 132 ISN_CHECKLEN, // check list length is isn_arg.checklen.cl_min_len |