Skip to content
Tcl Source Code Artifact [0b9b03a557]
Login

Artifact [0b9b03a557]

Artifact 0b9b03a557b75a94a3a8a6afd7f3577363d4b6e5:

Ticket change [0b9b03a557] - Ticket [47ac84309bab4719|47ac84309b] <i>more (compiled) lreplace madness</i> status still Open with 3 other changes by aspect on 2015-06-24 13:19:00.
D 2015-06-24T13:19:00.534
J icomment I\sthink\sit's\ssafe\sto\spreserve\sthe\scompilation\sof\slreplace\sin\ssimple\scases:\r\nboth\sindex\sarguments\sknown\sand\sof\sthe\ssame\s"sign".\s\sFerrieux\shas\salso\r\nadvised\s"drastically\sreducing\sthe\sambition\sof\sthe\soptimiser"\sin\s[44fd4b9a4e].\r\nI'm\svery\smuch\sin\sagreement\sthat\sfalling\sback\sto\sthe\sinterpreted\sversion\swhen\sit\r\ngets\sdifficult\sis\sthe\spath\sto\ssanity.\r\n\r\nThat,\sand\sclearly\sarticulating\sthe\svarious\scases.\s\sWhich\sis\swhere\sit\sgets\r\ninteresting\s(see\salso\s[44fd4b9a4e]):\r\n\r\n\r\nCompiled\slreplace\shas\ssupported\send+1\sindexing\sto\sappend\ssince\sat\sleast\r\n8.6.3:\r\n\r\n%\slreplace\sa\s1\s1\sb\r\na\sb\r\n%\slreplace\sa\send+1\send+1\sb\r\na\sb\r\n\r\nThis\sisn't\sdocumented\sor\ssupported\sby\sinterpreted\slreplace,\sbut\sit\sseems\sto\r\nbe\suseful.\s\sI\swould\slike\sto\sadd\sthis\sto\ssupported\sbehaviour\sof\s[lreplace],\r\ncomplete\swith\sa\sdecent\sset\sof\stests\sand\san\sexample\sin\sthe\sman\spage.\r\n\r\n\r\nAs\san\saside,\sI\sfind\sthe\sbelow\ssurprising\s..\sit's\sdocumented\sand\sconsistently\r\nimplemented\sbehaviour,\sbut\sI\scannot\sunderstand\sthe\smotivation.\r\n\r\n%\slreplace\s{}\s2\s2\r\n\r\n%\slreplace\s1\s2\s2\r\nlist\sdoesn't\scontain\selement\s2\r\n\r\nPerhaps\sif\sanyone\scan\scome\sup\swith\sa\sgood\smotivation\sfor\sthe\serror\sbeing\r\nsuppressed\sfor\san\sempty\slist,\sI\scan\sadd\sthat\sto\sthe\smanual\stoo.
J login aspect
J mimetype text/plain
K 47ac84309bab4719c58a693f5d63d837887f3b17
U aspect
Z 7493edafced2d01ffbe37702f217f4eb