Menu

#867 [lreplace] documentation incomplete

obsolete: 8.1
closed-fixed
nobody
2
2001-04-04
2000-10-26
Anonymous
No

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

Discussion

  • Brent B. Welch

    Brent B. Welch - 2000-10-26
    • priority: 5 --> 2
    • status: open --> closed-fixed
     
  • Don Porter

    Don Porter - 2001-04-04
    • labels: 104240 --> 17. Commands I-L
     
MongoDB Logo MongoDB