X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/dea4d05507e59ab779ed4bb209e05971d87e260c..bf090e021a5c20da452a4841cdfb8eb78e29544e:/src/class-utilities.lisp?ds=sidebyside diff --git a/src/class-utilities.lisp b/src/class-utilities.lisp index bf02aa6..62f27d8 100644 --- a/src/class-utilities.lisp +++ b/src/class-utilities.lisp @@ -51,13 +51,13 @@ (flet ((find-thing-by-name (what class list name key) (defun find-instance-slot-by-name (class super-nick slot-name) (let ((super (find-superclass-by-nick class super-nick))) - (find-thing-by-name "slot" super (sod-class-slots super) + (find-thing-by-name "instance slot" super (sod-class-slots super) slot-name #'sod-slot-name))) (defun find-class-slot-by-name (class super-nick slot-name) (let* ((meta (sod-class-metaclass class)) (super (find-superclass-by-nick meta super-nick))) - (find-thing-by-name "slot" super (sod-class-slots super) + (find-thing-by-name "class slot" super (sod-class-slots super) slot-name #'sod-slot-name))) (defun find-message-by-name (class super-nick message-name) @@ -110,7 +110,7 @@ (defun find-root-superclass (class) ;; ;; Note! This function gets called from `check-sod-class' before the ;; class's chains have been computed. Therefore we iterate over the direct - ;; superclass's chains rather than the class's own. This misses a chain + ;; superclasses' chains rather than the class's own. This misses a chain ;; only in the case where the class is its own chain head. There are two ;; subcases: if there are no direct superclasses at all, then the class is ;; its own root; otherwise, it clearly can't be the root and the omission