X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/sod/blobdiff_plain/f960a07b6cdf61ef8173dbb3e504f880cfdc17f6..73eceea64f35d47eeecb808cb7bfecb6bac4299b:/src/class-make-proto.lisp diff --git a/src/class-make-proto.lisp b/src/class-make-proto.lisp index 0e3c5d7..2e1fe7c 100644 --- a/src/class-make-proto.lisp +++ b/src/class-make-proto.lisp @@ -28,6 +28,14 @@ (cl:in-package #:sod) ;;;-------------------------------------------------------------------------- ;;; Classes. +(export 'guess-metaclass) +(defgeneric guess-metaclass (class) + (:documentation + "Determine a suitable metaclass for the CLASS. + + The default behaviour is to choose the most specific metaclass of any of + the direct superclasses of CLASS, or to signal an error if that failed.")) + (export 'make-sod-class) (defun make-sod-class (name superclasses pset &optional location) "Construct and return a new SOD class with the given NAME and SUPERCLASSES.