bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#18321: 24.4.50; EIEIO and (defmethod (setf ...))


From: Stefan Monnier
Subject: bug#18321: 24.4.50; EIEIO and (defmethod (setf ...))
Date: Tue, 05 May 2015 14:33:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> I was hoping this would work:
>
> (defclass hibob ()
>   ((click-callback :initform nil)
>    (icon :initform "" :accessor hibob-icon)))
>
> (defmethod (setf hibob-icon) :after (newval (obj hibob))
>   (setq zzzz newval))
>
> This works in Common Lisp and is quite handy.

IIUC this should now work if you use cl-defmethod.


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]