all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (elisp) Generic Functions cl-defmethod documentation bug?
@ 2018-01-01 13:37 Stephen Leake
  2018-01-02  5:09 ` Stefan Monnier
  0 siblings, 1 reply; 6+ messages in thread
From: Stephen Leake @ 2018-01-01 13:37 UTC (permalink / raw
  To: emacs-devel

In the elisp manual node Generic Functions, the documentation for
'cl-defmethod' includes:

     ‘STRUCT-TAG’
          The argument must be an instance of a class named STRUCT-TAG
          defined with ‘cl-defstruct’ (*note (cl)Structures::), or of
          one of its parent classes.

Shouldn't 'parent classes' be 'child classes'?

The method requires an object that has all the fields defined in the given
struct; that is true of child classes, not parents.

Unless I'm missing something.

-- 
-- Stephe



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-04  3:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-01 13:37 (elisp) Generic Functions cl-defmethod documentation bug? Stephen Leake
2018-01-02  5:09 ` Stefan Monnier
2018-01-02 13:41   ` Stephen Leake
2018-01-02 15:45     ` Eli Zaretskii
2018-01-03 22:57       ` Stephen Leake
2018-01-04  3:36         ` Eli Zaretskii

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.