0.9.18.64:
authorJuho Snellman <jsnell@iki.fi>
Mon, 20 Nov 2006 10:27:59 +0000 (10:27 +0000)
committerJuho Snellman <jsnell@iki.fi>
Mon, 20 Nov 2006 10:27:59 +0000 (10:27 +0000)
        Add a REPLACE restart for the annoying "FOO already names an ordinary
        function or a macro" error for DEFGENERIC.

src/pcl/boot.lisp
version.lisp-expr

index 8c4e28e..8d1535d 100644 (file)
@@ -1603,7 +1603,12 @@ bootstrapping.
     (if (and existing
              (eq *boot-state* 'complete)
              (null (generic-function-p existing)))
-        (generic-clobbers-function fun-name)
+        (restart-case
+            (generic-clobbers-function fun-name)
+          (replace ()
+            :report "Replace the function binding"
+            (fmakunbound fun-name)
+            (apply #'ensure-generic-function fun-name all-keys)))
         (apply #'ensure-generic-function-using-class
                existing fun-name all-keys))))
 
index b52785d..f8829e9 100644 (file)
@@ -17,4 +17,4 @@
 ;;; checkins which aren't released. (And occasionally for internal
 ;;; versions, especially for internal versions off the main CVS
 ;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.9.18.63"
+"0.9.18.64"