all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: Gemini Lasswell <gazally@runbox.com>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] master d895f6c: Fix Edebug specs for 'cl-defmethod' and 'defmethod'
Date: Thu, 11 May 2017 00:49:55 +0300	[thread overview]
Message-ID: <97fbc794-dab5-ff45-344d-e6db45c325cd@yandex.ru> (raw)
In-Reply-To: <jwvfugcu4k1.fsf-monnier+emacsdiffs@gnu.org>

On 10.05.2017 18:18, Stefan Monnier wrote:

> IIRC CLOS does not allow 0-arg methods (and it allows nil as a qualifier),
> whereas cl-defmethod uses `listp` to distinguish args from qualifiers,
> so it doesn't allow nil as qualifier (tho I suspect it doesn't handle
> a 0-arg method "correctly" either).

Seems to handle it okay, these both work:

(cl-defgeneric foo ()
   (1+ 2))

(cl-defmethod foo ()
   (1+ 4))

The latter redefines the default method, but that's to be expected.

If we want to support that kind of cl-defmethod in edebug, apparently we 
shold replace [&rest atom] with [&rest [&not listp]].



  reply	other threads:[~2017-05-10 21:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20170502072023.14740.35996@vcs0.savannah.gnu.org>
     [not found] ` <20170502072024.97B9A20CAB@vcs0.savannah.gnu.org>
2017-05-02 14:08   ` [Emacs-diffs] master d895f6c: Fix Edebug specs for 'cl-defmethod' and 'defmethod' Stefan Monnier
2017-05-03 21:46     ` Dmitry Gutov
2017-05-04 15:50       ` Stefan Monnier
2017-05-05  0:44         ` Dmitry Gutov
2017-05-10 14:24     ` Dmitry Gutov
2017-05-10 15:18       ` Stefan Monnier
2017-05-10 21:49         ` Dmitry Gutov [this message]
2017-05-10 21:54           ` Dmitry Gutov

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=97fbc794-dab5-ff45-344d-e6db45c325cd@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=gazally@runbox.com \
    --cc=monnier@IRO.UMontreal.CA \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.