Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2016-04-17
01:14 • Closed ticket [578c2fd960]: lreplace inconsistency between interpreted and compi... artifact: d1b7184429 user: anonymous
2015-11-17
08:20 • Ticket [578c2fd960]: 4 changes artifact: b80854677a user: aspect
08:11 • New ticket [578c2fd960]. artifact: 7d27edacbe user: apnadkarni

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.