Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fdbb4283dd92c02bbe7130147a187a553a2694132aa4aed4a0c868ad575e3a8f
Ticket: bc4ac0dd5f4c87677ea45fb5b480894630e3c5fb
lsearch -sorted -inline -subindices incorrect result
User & Date: sebres on 2024-11-18 17:30:31
Changes

  1. icomment:
    Option -subindices didn't matter by -inline in 8.6, it was only important if lsearch returns indices (without -subindices it'd return the index of element, with it'd return the index of found sub-element). With -inline the option won and the return value was always the whole element itself. 
    I guess it was "repaired" in 8.7 in order to return sub-element only, so it may be expected now, but then the second case is anyway wrong (found 2.0 instead of 3.000 by search for 3). Without -inline it looks correct.
    
    The blame shows [7ac44158fa45398f] (TIP 351 Implementation) as candidate, however then I'm unsure it is intended (basically the TIP was only about -stride option).
    
  2. login: "sebres"
  3. mimetype: "text/x-fossil-wiki"