Skip to content
Tcl Source Code Artifact [934afc3e52]
Login

Artifact [934afc3e52]

Artifact 934afc3e52adb184e718a39911b52c346c6cdcf181f8ed27a31f431ca9ea8fd2:

Ticket change [934afc3e52] - Ticket [e9a2715d912d8644|e9a2715d91] <i>Tcl 8.6.11: Incompatible Tcl_GetRange()</i> status still Open with 3 other changes by petasis on 2022-01-18 14:57:29.
D 2022-01-18T14:57:29.151
J icomment The\schange\sin\sbehaviour\sis\scaused\sby\sthis\scode\sthat\swas\sadded\sin\s8.6.11:\r\n\r\nif\s(last\s<\sfirst)\s{\r\n\s\s\s\sreturn\sTcl_NewObj();\r\n}\r\n\r\nif\slast\sis\s-1\s(or\sany\snumber\s<\s0),\sthis\sshortcut\swill\slead\sdirectly\sto\san\sempty\sstring.\r\n\r\nBut\sTcl_New(whatever\shere)Obj(bytes\s+\sfirst,\slast\s-\sfirst\s+\s1)\swill\salways\snot\sreturn\san\sempty\sstring\s(with\sthe\sexception\sof\sfirst\sbeing\s0,\swhich\sis\sa\srare\suse\sto\sask\sfor\s0,\s-1).\sIf\slast\sis\s-1,\sand\sfirst\s>\s0,\slast\s-\sfirst\s+\s1\swill\salways\sbe\snegative,\sso\syou\sget\sback\severything\still\sthe\send\sof\sthe\sstring.
J login petasis
J mimetype text/x-fossil-wiki
K e9a2715d912d86448a2ed18b2d25788cd50769b4
U petasis
Z 66a3a764b8eec7d75102b73dce5d45c9