Overview
| Artifact ID: | 9ccf91e72cb54c820b6a9261b03824bd0e3effcf |
|---|---|
| Ticket: | 47ac84309bab4719c58a693f5d63d837887f3b17
more (compiled) lreplace madness |
| User & Date: | aspect on 2015-06-22 03:24:10 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/x-fossil-wiki"
- comment changed to:
in chasing [44fd4b9a4e], another edge case with compiled lreplace: <pre>% lreplace {a b c} end 0 !! {a b c} != {a b b c} % lreplace {a b c} end 0 A !! {a b A c} != {a b A b c}</pre> In each case the LHS is the interpreted & incorrect answer, RHS compiled & correct. Test script: <pre>proc check {cmd} { puts "% $cmd" proc t {} $cmd set rc [t] set ri [uplevel 1 $cmd] if {$ri ne $rc} { puts "!! [list $ri != $rc]" } else { puts "ok [list $rc]" } } foreach {a} { 0 1 2 3 end-3 end-2 end-1 end } { check [list lreplace {a b c} end $a] check [list lreplace {a b c} end $a a] }</pre> - foundin changed to: "trunk"
- is_private changed to: "0"
- login: "aspect"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "aspect"
- subsystem changed to: "14. List Object"
- title changed to: "more (compiled) lreplace madness"
- type changed to: "Bug"