Overview
| Artifact ID: | c81803fcdc75b31b09a136d4ee7437f4db67f183 |
|---|---|
| Ticket: | 44fd4b9a4eb9ff5551e8e68d4ffc592946a035e4
More lreplace weirdness |
| User & Date: | aspect on 2015-06-22 04:56:05 |
Changes
- icomment:
<p><a href="http://core.tcl.tk/tcl/artifact/38344c8a167d9207?ln=33-35">lreplace.n</a> does not support the theory that 1-past-the-end is a valid index for lreplace: <p><i>"For non-empty lists, the element indicated by first must exist or first must indicate before the start of the list."</i> <p>The interpreted implementation (referenced in this ticket) agrees with the manual. The compiled version (<a href="http://core.tcl.tk/tcl/info/47ac84309b">inconsistently</a>) currently does not - presumably so that <tt>end+1</tt> can be used to append. <p>Before proceeding to fix both these tickets, I think we should agree on whether <tt>end+1</tt> indexes should be allowed for <tt>lreplace</tt>, and if so, start by crafting a clear description for the manual.
- login: "aspect"
- mimetype: "text/html"