[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Catching no generic method in EIEIO
From: |
Phillip Lord |
Subject: |
Catching no generic method in EIEIO |
Date: |
Wed, 25 May 2016 17:03:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (gnu/linux) |
Using EIEIO I can define a `slot-missing' method to catch "No Such Slot"
errors for objects which do not have this slot.
I've looked but as far as I can see, there is no ability to catch a
missing implementation for a method.
So:
(defclass One()())
(defclass Two()())
(defmethod met((o One))
'hello)
(met (One))
(met (Two))
The last form crashes -- I could, of course, implement this using
defmethod on Two, but I want to this for any method.
Phil
- Catching no generic method in EIEIO,
Phillip Lord <=