Skip to content
Tcl Source Code Artifact [839f620292]
Login

Artifact [839f620292]

Artifact 839f620292eb393a4293b011cbb66adc823145b5:

Ticket change [839f620292] - Ticket [738900ffffffffff|738900ffff] <i>limit shimmer of singleton lists</i> status still Open with 3 other changes by ferrieux on 2016-08-19 17:12:23.
D 2016-08-19T17:12:23.623
J icomment To\sverify,\syou\scan\ssimply\sparse\s[::tcl::unsupported::representation]'s\soutput\son\stypical\sshimmering\spaths.\sSure,\sthat's\sexactly\swhat\swe\stry\sto\sdiscourage,\sbut\swho\sreads\sthe\stest\ssuite\s?\s;-)\r\n\r\n\r\nNow\slooking\sat\sthe\scurrent\simplementation,\sthere's\sstill\sa\sproblem\swith\scanonicity,\sand\sI\sbelieve\sthat\smay\sbe\sthe\sreason\sfor\sthe\sill-understood\sbreakage\smentioned\searlier:\s\sbeware\sof\sany\sexisting\sstring\srep\sfor\sthe\sincoming\snumber\s!\r\n\r\nDemo\sscript:\r\n\r\nset\sx\s"\s\s\s1.3\s\s\s";expr\s{log($x)};llength\s$x;puts\sA[lindex\s$x\s0][lindex\s$x\s0]B\r\n\r\nOutput\swith\strunk:\sA1.31.3B\r\nOutput\swith\spatch:\sA\s\s\s1.3\s\s\s\s\s\s1.3\s\s\sB\r\n\r\nAs\syou\scan\ssee,\sthe\sproblem\sis\sthat\syou\skeep\sthe\sintrep\s(possibly\snoncanonical,\se.g.\swith\sextra\sspace)\sof\sthe\sincoming\snumber\sboth\sfor\sthe\s"boxed"\snumber\sand\sthe\slist:\r\n\r\n%\stcl::unsupported::representation\s$x\r\nvalue\sis\sa\slist\swith\sa\srefcount\sof\s6,\sobject\spointer\sat\s0x1c325d0,\sinternal\srepresentation\s0x1c411d0:(nil),\sstring\srepresentation\s"\s\s\s1.3\s\s\s"\r\n%\stcl::unsupported::representation\s[lindex\s$x\s0]\r\nvalue\sis\sa\sdouble\swith\sa\srefcount\sof\s2,\sobject\spointer\sat\s0x1c366e0,\sinternal\srepresentation\s0x3ff4cccccccccccd:(nil),\sstring\srepresentation\s"\s\s\s1.3\s\s\s"\r\n\r\nWhile\sI\sthink\sonly\sthe\slist\s(the\stoplevel\sobject\sthat\swe\sare\sdelicately\sshimmering)\sshould\skeep\sthat\sintrep\s(and\sbe\ssure\sto\sset\sisCanonical\sto\sFALSE),\sand\sthe\sboxed\snumber\sshould\shave\sno\sstring\srep.
J login ferrieux
J mimetype text/plain
K 738900ffffffffffffffffffffffffffffffffff
U ferrieux
Z 5019f551060ec047fff8f69787ffde7b