lreplace inconsistency between interpreted and compiled code
Closed / Fixed578c2fd960a43a9e7bbae78404da55952c52de55Created 11 years agoUpdated 11 years ago
Descriptionplain2015-11-17 08:11:03
There seems to be an inconsistency between compiled and interpreted lreplace as shown below
% proc lr {l val pos} {lreplace $l $pos $pos $val}
% set l {a b c}
a b c
% lr $l x 3
list doesn't contain element 3
% lreplace $l 3 3 x
a b c x
aspectplain2015-11-17 08:20:27
the branch @ chiselapp linked from [47ac84309b] fixes this -- not quite sure if this is an entirely distinct bug from the one described in that ticket or in [44fd4b9a4e].
anonymous (claiming to be aspect)plain2016-04-17 01:14:32
This was fixed with [47ac84309b] in [d561a9353]. More discussion at [44fd4b9a4].
Log in (anonymous is fine) to add a comment.