Plaster
New
List
Login
common-lisp
default
yitzi
2022.03.16 01:00:10
(defclass s () ((x :reader x :initarg :x) (y :accessor y))) (defmethod initialize-instance :after ((instance s) &rest initargs &key &allow-other-keys) (declare (ignore initargs)) (setf (y instance) (expt (x instance) 2))) (make-instance 's :x 10)
Raw
Annotate
Repaste