Skip to content
Tcl Source Code Artifact [de6ed6a7da]
Login

Artifact [de6ed6a7da]

Artifact de6ed6a7da39c637d9253c6fd6db0ec7b700c827:

Ticket change [de6ed6a7da] - New ticket [3045123fffffffff|3045123fff] <i>linsert man page end indexing inconsistency</i>. by andygoth on 2010-08-15 01:33:42.
D 2010-08-15T01:33:42
J assignee dkf
J cmimetype text/plain
J comment Copied\sfrom\shttp://wiki.tcl.tk/1485\s:\n\nAccording\sto\sthe\sman\spage,\s"[linsert]\sproduces\sa\snew\slist\sfrom\slist\sby\sinserting\sall\sof\sthe\selement\sarguments\sjust\sbefore\sthe\sindex’th\selement\sof\slist."\sWhen\sdoing\send-relative\sindexing,\sthis\sdefinition\sdoesn't\smatch\sthe\sactual\sbehavior.\sTo\sexplain\show\sindex\sis\sinterpreted,\sthe\s[linsert]\sman\spage\srefers\sto\sthe\s[string\sindex]\sman\spage,\swhich\ssays\sthat\send\sindicates\sthe\slast\selement.\sFrom\sthis\sI\sexpect\sthat\s[linsert\s{0\s1\s2}\send\sx]\swill\sreturn\s{0\s1\sx\s2},\sthe\sresult\sof\sinserting\sx\sjust\sbefore\sthe\send\selement\sof\sthe\slist,\swhich\sis\s2.\sHowever,\sit\sactually\sreturns\s{0\s1\s2\sx},\sso\swhen\sdoing\send-relative\sindexing\sit\sinserts\sthe\snew\selements\sjust\safter\s\sthe\sindicated\sindex.\sAn\salternative,\smore\splausible\sexplanation\sis\sthat\sit\sinserts\sthe\snew\selements\ssuch\sthat\sthe\sfirst\sor\slast\sof\sthe\sinserted\selements\swill\soccupy\sthe\sindicated\sindex.\n\nSuggest\supdating\sthe\sdocumentation\sto\sresolve\sthis\sinconsistency.
J foundin obsolete:\s8.6b1.1
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter andygoth
J subsystem 17.\sCommands\sI-L
J title linsert\sman\spage\send\sindexing\sinconsistency
J type Bug
K 3045123fffffffffffffffffffffffffffffffff
U andygoth
Z eb51d34333b4c85d88b15c424a66dbac