X-Git-Url: https://git.distorted.org.uk/~mdw/sod/blobdiff_plain/aa14a4cddcb96b681d5c19a2ec8bad382f43b264..9ec578d9fe450b7e7f9030dc9d930185593aa991:/src/class-layout-impl.lisp diff --git a/src/class-layout-impl.lisp b/src/class-layout-impl.lisp index 4bff54d..3a5b5cd 100644 --- a/src/class-layout-impl.lisp +++ b/src/class-layout-impl.lisp @@ -58,7 +58,7 @@ (prepare-function :initarg :prepare-function :type (or symbol function) :reader sod-slot-prepare-function)) (:documentation - "Special class for slots defined on SodClass. + "Special class for slots defined on `SodClass'. These slots need class-specific initialization. It's easier to keep all of the information (name, type, and how to initialize them) about these @@ -68,9 +68,9 @@ ((slot sod-class-slot) slot-names &key pset) (declare (ignore slot-names)) (default-slot (slot 'initializer-function) - (get-property pset :initializer-function t nil)) + (get-property pset :initializer-function :func nil)) (default-slot (slot 'prepare-function) - (get-property pset :prepare-function t nil))) + (get-property pset :prepare-function :func nil))) (export 'sod-class-effective-slot) (defclass sod-class-effective-slot (effective-slot) @@ -80,7 +80,7 @@ (prepare-function :initarg :prepare-function :type (or symbol function) :reader effective-slot-prepare-function)) (:documentation - "Special class for slots defined on SodClass. + "Special class for slots defined on `SodClass'. This class ignores any explicit initializers and computes initializer values using the slot's INIT-FUNC slot and a magical protocol during @@ -130,6 +130,7 @@ (defmethod slot-unbound (clos-class (class sod-class) (slot-name (eql 'effective-methods))) + (declare (ignore clos-class)) (setf (slot-value class 'effective-methods) (compute-effective-methods class))) @@ -207,6 +208,7 @@ (defmethod slot-unbound (clos-class (class sod-class) (slot-name (eql 'ilayout))) + (declare (ignore clos-class)) (setf (slot-value class 'ilayout) (compute-ilayout class))) @@ -389,6 +391,7 @@ (defmethod slot-unbound (clos-class (class sod-class) (slot-name (eql 'vtables))) + (declare (ignore clos-class)) (setf (slot-value class 'vtables) (compute-vtables class)))