X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fpcl%2Fslots.lisp;h=a37f983399e250da4060ef4d19943a059b741a3b;hb=2561033fd3ed9e224dffc445262e097e5abfa920;hp=2e3d35817f092184a3e3ca059fa732cee7fc6748;hpb=444d2072bc52e60a41af62ee22e343e76109212f;p=sbcl.git diff --git a/src/pcl/slots.lisp b/src/pcl/slots.lisp index 2e3d358..a37f983 100644 --- a/src/pcl/slots.lisp +++ b/src/pcl/slots.lisp @@ -318,7 +318,16 @@ instance)) (defmethod slot-unbound ((class t) instance slot-name) - (error 'unbound-slot :name slot-name :instance instance)) + (restart-case + (error 'unbound-slot :name slot-name :instance instance) + (use-value (v) + :report "Return a value as the slot-value." + :interactive read-evaluated-form + v) + (store-value (v) + :report "Store and return a value as the slot-value." + :interactive read-evaluated-form + (setf (slot-value instance slot-name) v)))) (defun slot-unbound-internal (instance position) (values