<i>more (compiled) lreplace madness</i> status still Open with 5 other changes
by
.
D 2015-06-22T15:39:32.590
J comment in\schasing\s[44fd4b9a4e],\sanother\sedge\scase\swith\scompiled\slreplace:\r\n\r\n<pre>%\slreplace\s{a\sb\sc}\send\s0\r\n!!\s{a\sb\sc}\s!=\s{a\sb\sb\sc}\r\n%\slreplace\s{a\sb\sc}\send\s0\sA\r\n!!\s{a\sb\sA\sc}\s!=\s{a\sb\sA\sb\sc}</pre>\r\n\r\n\r\nIn\seach\scase\sthe\sLHS\sis\sthe\sinterpreted\s&\scorrect\sanswer,\sRHS\scompiled\s&\sincorrect.\r\n\r\nTest\sscript:\r\n\r\n<pre>proc\scheck\s{cmd}\s{\r\n\s\s\s\sputs\s"%\s$cmd"\r\n\s\s\s\sproc\st\s{}\s$cmd\r\n\s\s\s\sset\src\s[t]\r\n\s\s\s\sset\sri\s[uplevel\s1\s$cmd]\r\n\s\s\s\sif\s{$ri\sne\s$rc}\s{\r\n\s\s\s\s\s\s\s\sputs\s"!!\s[list\s$ri\s!=\s$rc]"\r\n\s\s\s\s}\selse\s{\r\n\s\s\s\s\s\s\s\sputs\s"ok\s[list\s$rc]"\r\n\s\s\s\s}\r\n}\r\n\r\nforeach\s{a}\s{\r\n\s\s\s\s0\s1\s2\s3\send-3\send-2\send-1\send\r\n}\s{\r\n\s\s\s\scheck\s[list\slreplace\s{a\sb\sc}\send\s$a]\r\n\s\s\s\scheck\s[list\slreplace\s{a\sb\sc}\send\s$a\sa]\r\n}</pre>
J icomment Exchanged\s"correct"\sand\s"incorrect"\sin\sthe\sdescription.\r\nI\shope\sthis\sis\scorrect.\r\n\r\nHarald
J login oehhar
J mimetype text/x-fossil-wiki
J username oehhar
K 47ac84309bab4719c58a693f5d63d837887f3b17
U oehhar
Z 3ac9641a91409d99a6625c6e10279ac9