[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Catching no generic method in EIEIO
From: |
Stefan Monnier |
Subject: |
Re: Catching no generic method in EIEIO |
Date: |
Wed, 25 May 2016 14:19:21 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> The last form crashes -- I could, of course, implement this using
> defmethod on Two, but I want to this for any method.
(defmethod ((o t))
...)
should do the trick.
Stefan
PS: Of course, I also recommend you switch to cl-generic
(i.e. use (cl-defmethod ...)). It's more featureful and much faster.