Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/vim9.h +++ b/src/vim9.h @@ -93,7 +93,7 @@ typedef enum { ISN_CATCH, // drop v:exception ISN_ENDTRY, // take entry off from ec_trystack - // moreexpression operations + // more expression operations ISN_ADDLIST, ISN_ADDBLOB, @@ -124,6 +124,7 @@ typedef enum { ISN_STRINGMEMBER, // dict.member using isn_arg.string ISN_2BOOL, // convert value to bool, invert if isn_arg.number != 0 ISN_2STRING, // convert value to string at isn_arg.number on stack + ISN_2STRING_ANY, // like ISN_2STRING but check type ISN_NEGATENR, // apply "-" to number ISN_CHECKNR, // check value can be used as a number