Fix (CONCATENATE 'null ...) for generic sequences
authorPaul Khuong <pvk@pvk.ca>
Mon, 20 May 2013 05:03:01 +0000 (01:03 -0400)
committerPaul Khuong <pvk@pvk.ca>
Mon, 20 May 2013 05:06:05 +0000 (01:06 -0400)
commit22c592cbf7e81e78ceaef80d1c15ad7a7fc3b40a
tree7a0df866aed07a60b9a7e65874a278b6341e1ef9
parentf7808fb1c49b729d00580321b3f8457ce4b84cf4
Fix (CONCATENATE 'null ...) for generic sequences

 * (CONCATENATE 'NULL SEQUENCE1 SEQUENCE2 ...) ensures that SEQUENCE1,
   SEQUENCE2, ... are empty, but only did so for lists and
   vectors. Instead, use new function EMPTYP which works for all
   sequences. EMPTYP is not exported.

 * Add generic function SEQUENCE:EMPTYP to which EMPTYP dispatches for
   generic sequences. Methods for lists, vectors and generic sequences
   use NULL or (ZEROP (LENGTH ...)).

 * Test cases in seq.impure.lisp.

 * Patch by Jan Moringen; fixes lp#1162301.
NEWS
package-data-list.lisp-expr
src/code/seq.lisp
src/pcl/sequence.lisp
tests/seq.impure.lisp