find-class
(find-class symbol &optional (errorp t) environment)
Returns the class metaobject named by symbol -- a standard-class instance, or a built-in-class one for a built-in class, whose slots the class-name / closer-mop readers (class-slots, slot-definition-name, ...) consume. The answer is memoized, so two calls for the same class return the same (eq) object -- the same object class-of answers for an instance of that class. When no class is named symbol, an error is signaled unless errorp is nil, in which case nil is returned; environment is ignored. The known classes are every defclass / define-condition / defstruct in the program, the built-in condition hierarchy, and the built-in classes: the ones class-of answers (integer, ratio, float, complex, string, character, symbol, keyword, cons, null, boolean, hash-table, function, vector, array, the stream classes stream, file-stream, string-stream, synonym-stream, two-way-stream, broadcast-stream, echo-stream and concatenated-stream, t) plus the INTERIOR of the lattice, which is reachable by name only because class-of always has a narrower answer for it (sequence, list, number, real, rational, bit-vector, structure-object, built-in-class, standard-object, pathname), package (a package value is the keyword naming it, of class keyword), and the method metaobject classes (generic-function, standard-generic-function, method, standard-method, method-combination, closer-mop:standard-accessor-method, closer-mop:standard-reader-method, closer-mop:standard-writer-method, closer-mop:eql-specializer; see defmethod). A built-in class metaobject carries no slots and no superclasses -- standing where a type specifier is expected it means the same set as its name, so typep and subtypep hold the lattice, not the metaobject. On the compiled backends the class set is fixed at compile time; classes built from runtime data do not exist.
(setf (find-class 'alias) (find-class 'target)) -- both names literal, target an already defined class, at top level -- registers the class under a second name: after it, find-class, make-instance, typep, subtypep and a handler-case clause all resolve the alias to the very same class (the metaobject is eq). The compiled backends build their class table at compile time, so this shape takes effect there. Any other shape runs when it is evaluated and changes what find-class answers, nothing else: nil forgets the name (find-class then signals, or answers nil when errorp is nil, while the class, its instances and class-of stay), a class metaobject makes find-class answer it for the name, and a later defclass of the name ends either. (setf (find-class 'name) nil) for a name no class has at that point (in program order) removes nothing and returns nil.