Skip to content
Tcl Source Code Artifact [9285ffa5f8]
Login

Artifact [9285ffa5f8]

Artifact 9285ffa5f81d8ecc2d0bd0c30b7204b06f146066bf2348f24d20dc9d7ea7d74f:

Ticket change [9285ffa5f8] - Ticket [5a1aaa201da8bd4b|5a1aaa201d] <i>lsearch -stride with -subindices and -inline -all gives unexpected result</i> status still Open with 4 other changes by juliannoble2 on 2024-11-13 03:41:51.
D 2024-11-13T03:41:51.417
J icomment Aside\sfrom\sconsistency\swith\sthe\snested\sequivalent,\sit's\snot\sself-consistent.\r\n\r\nAnother\sway\sof\slooking\sat\sthis\sis\sthat\s-all\sshould\salways\sbe\sequivalent\sto\sbuilding\sthe\slist\sby\siterating\susing\s-start.\r\n\r\n\s\slsearch\s-start\s0\s-stride\s2\s\s-index\s1\s\s-inline\s-subindices\s{abc\sabc\sabc\sbcd\sabc\scde\sabc\sdef}\s*c*\r\n\s\s\s\sabc\r\n\r\n\s\slsearch\s-start\s2\s-stride\s2\s\s-index\s1\s\s-inline\s-subindices\s{abc\sabc\sabc\sbcd\sabc\scde\sabc\sdef}\s*c*\r\n\s\s\s\sbcd\r\n\r\n\s\slsearch\s-start\s4\s-stride\s2\s\s-index\s1\s\s-inline\s-subindices\s{abc\sabc\sabc\sbcd\sabc\scde\sabc\sdef}\s*c*\r\n\s\s\s\scde\r\n\r\n\s\slsearch\s-all\s-start\s0\s-stride\s2\s\s-index\s1\s\s-inline\s-subindices\s{abc\sabc\sabc\sbcd\sabc\scde\sabc\sdef}\s*c*\r\n\s\s\s\sabc\sabc\sabc\sbcd\sabc\scde\r\n\r\nThis\sshould\sbe:\sabc\sbcd\scde\r\nbut\sit's\sreturning\seach\smatched\sstride-group\sinstead.\r\n\r\nThis\sresult\sis\salready\sobtainable\sby\somitting\s-subindices\r\n\r\n\s\slsearch\s-all\s-start\s0\s-stride\s2\s\s-index\s1\s\s-inline\s{abc\sabc\sabc\sbcd\sabc\scde\sabc\sdef}\s*c*\r\n\s\s\s\sabc\sabc\sabc\sbcd\sabc\scde\r\n\r\n\r\nI'm\snot\saware\sof\sany\scase\sother\sthan\swith\sa\ssingle\s-index\scombined\swith\s-stride,\s-subindices\s-all\swhere\sthis\sinconsistency\soccurs.\r\n\r\nThere\saren't\smany\sdocumented\sexamples\sfor\s-stride,\sand\sno\stest\scoverage\sfor\sthis\sspecific\scase.\r\nIt\stook\sme\sa\swhile\sto\sunderstand\sthere\swas\san\sinconsistency,\sand\salthough\sthe\s-stride\soption\shas\sbeen\savailable\sfor\sa\swhile\s-\sI\sthink\swith\sthe\srelease\sof\sTcl\s9\sthis\sshould\sbe\shigh\son\sthe\spriority\slist.
J login juliannoble2
J mimetype text/plain
J priority 8
K 5a1aaa201da8bd4ba2b37348c5247c98d192321e
U juliannoble2
Z d42a4bc29b20f0b4c73516768521265c