1.0.37.36: revisit FIND/POSITION bounds checking on lists
authorNikodemus Siivola <nikodemus@random-state.net>
Sun, 4 Apr 2010 09:03:08 +0000 (09:03 +0000)
committerNikodemus Siivola <nikodemus@random-state.net>
Sun, 4 Apr 2010 09:03:08 +0000 (09:03 +0000)
commitdd92bd1d2fff942e6a38542364be21fa256cb4c0
tree8827be80d1d266a364fffcc959ced73f2193182e
parentcf8e7223bce9948aaa764fd407871f0c441b3097
1.0.37.36: revisit FIND/POSITION bounds checking on lists

  The spec doesn't actually /require/ us to signal an error if we
  are not in danger of running out of bounds as far as I can tell.

  So don't traverse the entire list during forward searches if we
  find what we are looking for before specified :END or the list end.

  Patch by Alec Berryman.

  This revisits lp#452008, and fixed lp#554385.
NEWS
src/compiler/seqtran.lisp
tests/seq.pure.lisp
version.lisp-expr