comparison src/vim9.h @ 31604:9b13b3a63bc0 v9.0.1134

patch 9.0.1134: comparing objects uses identity instead of equality Commit: https://github.com/vim/vim/commit/bcf31ec36b4b056bf06d21036640c6f0235e9c2b Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jan 2 20:32:24 2023 +0000 patch 9.0.1134: comparing objects uses identity instead of equality Problem: Comparing objects uses identity instead of equality. Solution: Compare the object values.
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Jan 2023 21:45:02 +0100
parents 1bebc2093e6b
children 48431422f766
comparison
equal deleted inserted replaced
31603:2b8fe38a9989 31604:9b13b3a63bc0
162 ISN_COMPAREBLOB, 162 ISN_COMPAREBLOB,
163 ISN_COMPARELIST, 163 ISN_COMPARELIST,
164 ISN_COMPAREDICT, 164 ISN_COMPAREDICT,
165 ISN_COMPAREFUNC, 165 ISN_COMPAREFUNC,
166 ISN_COMPAREANY, 166 ISN_COMPAREANY,
167 ISN_COMPARECLASS,
168 ISN_COMPAREOBJECT,
167 169
168 // expression operations 170 // expression operations
169 ISN_CONCAT, // concatenate isn_arg.number strings 171 ISN_CONCAT, // concatenate isn_arg.number strings
170 ISN_STRINDEX, // [expr] string index 172 ISN_STRINDEX, // [expr] string index
171 ISN_STRSLICE, // [expr:expr] string slice 173 ISN_STRSLICE, // [expr:expr] string slice