From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Catching no generic method in EIEIO
Date: Wed, 25 May 2016 14:19:21 -0400 [thread overview]
Message-ID: <jwvvb22q9yt.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 8760u2gm6c.fsf@russet.org.uk
> 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.
next prev parent reply other threads:[~2016-05-25 18:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-25 16:03 Catching no generic method in EIEIO Phillip Lord
2016-05-25 16:06 ` Dmitry Gutov
2016-05-25 18:19 ` Stefan Monnier [this message]
2016-05-26 15:07 ` Phillip Lord
2016-05-28 18:29 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvvb22q9yt.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).