On Thu, Jul 27, 2017 at 04:14:18PM -0700, Father Chrysostomos via RT wrote: > > Also, index() doesn't return a boolean value, but for no match it > > returns > > -1. So for code like > > > > if (index(...) != -1) { ... } > > > > optimise away the OP_CONST and the OP_EQ and flag the index op to > > return a > > boolean value. > > index(...) >= 0 is also quite common. I've now added comparison variant like that with v5.27.2-102-g400ffcf. -- The Enterprise's efficient long-range scanners detect a temporal vortex distortion in good time, allowing it to be safely avoided via a minor course correction. -- Things That Never Happen in "Star Trek" #21Thread Previous