(setf slot-value-using-class) not working ...
- From: Frank GOENNINGER <dont-email-me@xxxxxxxxxx>
- Date: Fri, 31 Oct 2008 23:07:30 +0100
Dear MOP Gurus!
I want to intercept the setf of a slot.
So I have that simple class
(defclass frgo ()
((slot-1 :accessor slot-1 :initform nil :initarg :slot-1)))
and do:
(defmethod (setf slot-value-using-class) :before
(new-value (class frgo) object slot)
(format *debug-io* "S-V-U-C calles: new-value = ~s, object = ~s, slot
= ~s~%" new-value object slot))
.... just for testing purposes.
1st question: Why do I never land in this method?
2nd question: How do I best debug MOP method selection?
3rd question: How do I specialize on exactly one specific slot (this
method should only get calles when slot-1 is setf'ed ...)
Thanks!!!
Cheers
Frank
--
Frank Goenninger
"Don't ask me! I haven't been reading comp.lang.lisp long enough to
really know ..."
.
- Prev by Date: Re: Symbol clashes: how to avoid them. Part 2
- Next by Date: Re: Is it a bad sign...
- Previous by thread: Symbol clashes: how to avoid them. Part 2
- Index(es):