chiark / gitweb /
mop: Remove &allow-other-keys from methods.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 30 Apr 2006 18:32:43 +0000 (19:32 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 30 Apr 2006 18:32:43 +0000 (19:32 +0100)
A more careful reading of the CLOS method congruence rules suggests that
these mess up the keyword validity checking.  Which is a shame.

mdw-mop.lisp

index 0766e384cd7968e134a57efc06ffdf23b7d015a7..92c164f26becc0f58f37b6e99c6abbf9223e8102 100644 (file)
@@ -152,7 +152,7 @@ (defmethod effective-slot-definition-class
       (call-next-method)))
 
 (defmethod initialize-instance :after
-    ((slot filtered-direct-slot-definition) &key &allow-other-keys)
+    ((slot filtered-direct-slot-definition) &key)
   (with-slots (filter) slot
     (when (and (consp filter)
               (or (eq (car filter) 'function)
@@ -191,7 +191,7 @@ (defclass predicate-class-mixin (compatible-class)
     returning a non-nil value."))
 
 (defmethod shared-initialize :after
-    ((class predicate-class-mixin) slot-names &key &allow-other-keys)
+    ((class predicate-class-mixin) slot-names &key)
   (declare (ignore slot-names))
   (with-slots (predicates) class
     (dolist (predicate predicates)