Overview
| Artifact ID: | 75378352e7c8b83bf479c4bb9db00ebec61157e3 |
|---|---|
| Ticket: | 1374778fffffffffffffffffffffffffffffffff
lsearch -start inconsistent return |
| User & Date: | dgp on 2005-12-08 23:58:55 |
Changes
- assignee changed to: "dkf"
- icomment:
Logged In: YES user_id=80530 I would expect that lsearch -start $x $l $i with $x an integer would either return -1 (not found) or would return an integer greater than or equal to $x . [lsearch -start 999 $l d] => 7 goes against my expectations, and suggests the search did not start at index 999 as instructed, but started at index 7 instead. This looks like a bug to me, and as such ought to be fixed for 8.4.13. I'm willing to be talked out of that if this "feature" enables some particularly elegant coding of some particularly useful algorithm. In that case, I'd want really good documentation.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"