(defmethod initialize-instance :around ((class persistent-class)
&rest args
&key direct-superclasses
&allow-other-keys)
;; Make sure the class inherits from persistent-object.
(let ((result (apply #'call-next-method
class
:direct-superclasses (maybe-add-persistent-object-class
class
direct-superclasses)
;; Tell Lispworks that it shouldn't bypass
;; slot-value-using-class.
#+lispworks :optimize-slot-access #+lispworks nil
args)))
(update-indexes class)
result))
Source Context