0.7.13.22:
authorChristophe Rhodes <csr21@cam.ac.uk>
Mon, 10 Mar 2003 17:25:11 +0000 (17:25 +0000)
committerChristophe Rhodes <csr21@cam.ac.uk>
Mon, 10 Mar 2003 17:25:11 +0000 (17:25 +0000)
        Minor error fix, from Paul Dietz' suite
        ... if GETF and GET-PROPERTIES signal a error on malformed
property lists, then make it a type-error, not just a
simple-error

NEWS
src/code/symbol.lisp
version.lisp-expr

diff --git a/NEWS b/NEWS
index 90bf931..64d2257 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1596,6 +1596,8 @@ changes in sbcl-0.7.14 relative to sbcl-0.7.13:
     ** APPEND checks its arguments for being proper lists;
     ** An array specialized to be unable to hold elements has been
        implemented (as required -- yes, really) by ANSI;
+    ** GETF and GET-PROPERTIES throw a TYPE-ERROR, not a SIMPLE-ERROR,
+       on malformed property lists;
 
 planned incompatible changes in 0.7.x:
   * (not done yet, but planned:) When the profiling interface settles
index 437e199..e1143df 100644 (file)
   (do ((plist place (cddr plist)))
       ((null plist) default)
     (cond ((atom (cdr plist))
-          (error "~S is a malformed property list."
-                 place))
+          (error 'simple-type-error
+                 :format-control "malformed property list: ~S."
+                 :format-arguments (list place)
+                 :datum (cdr plist)
+                 :expected-type 'cons))
          ((eq (car plist) indicator)
           (return (cadr plist))))))
 
   (do ((plist place (cddr plist)))
       ((null plist) (values nil nil nil))
     (cond ((atom (cdr plist))
-          (error "~S is a malformed proprty list."
-                 place))
+          (error 'simple-type-error
+                 :format-control "malformed property list: ~S."
+                 :format-arguments (list place)
+                 :datum (cdr plist)
+                 :expected-type 'cons))
          ((memq (car plist) indicator-list)
           (return (values (car plist) (cadr plist) plist))))))
 
index 50f5b56..4995ac4 100644 (file)
@@ -18,4 +18,4 @@
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
 
-"0.7.13.21"
+"0.7.13.22"