Saturday, July 04 2009 @ 00:00 +0200
Consider a class with a trivial initialization dependency between
slots A and B:
(defclass super () ((a :initarg :a :reader a) (b :initform 0 :initarg :b :reader b))) (defmethod initialize-instance :after ((super super) &key &allow-other-keys) (setf (slot-value super 'a) (1+ (slot-value super 'b)))) Read more