- priority: 5 --> 2
- status: open --> closed-fixed
OriginalBugID: 2005 Bug
Version: 8.1
SubmitDate: '1999-05-07'
LastModified: '2000-01-18'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 1705
OS: Other
Machine: NA
FixedDate: '2000-01-18'
FixedInVersion: 8.3
ClosedDate: '2000-10-25'
Name:
Don Porter
Comments:
lreplace <list> <first> <last> ?<element> ...?
When the <last> argument is < 0, but >= <first>, replacement
is done at the start of the list. This case is not documented
in lreplace(n).
The incompatibility with Tcl 7.4 should probably also be noted.
Any doc fix should also be made to the 8.0.x sequence of releases.
ObservedBehavior:
% set a {1 2 3}
1 2 3
% lreplace $a -2 -1 0
0 1 2 3
The docs don't specifically preclude this case, but I have cleared
it up in the 8.3.0 docs. As for the incompatibility, I would have
noted the original case as a bug.
-- 01/18/2000 hobbs