all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#19767: 25.0.50; cl-defgeneric docs
@ 2015-02-04 12:22 Teodor Zlatanov
  2015-02-04 15:32 ` Stefan Monnier
  0 siblings, 1 reply; 2+ messages in thread
From: Teodor Zlatanov @ 2015-02-04 12:22 UTC (permalink / raw)
  To: 19767

I see lisp/emacs-lisp/cl-generic.el was added recently, and that's great.
But the CL manual hasn't been updated, I think?

The EIEIO manual for this functionality in (info "(eieio) Generics") and
(info "(eieio) Methods") is technically OK but for a *novice*, I think
it's almost incomprehensible and lacks examples.

I could try to help here, but I haven't used this facility before so I
need some pointers.

Thanks
Ted





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

* bug#19767: 25.0.50; cl-defgeneric docs
  2015-02-04 12:22 bug#19767: 25.0.50; cl-defgeneric docs Teodor Zlatanov
@ 2015-02-04 15:32 ` Stefan Monnier
  0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2015-02-04 15:32 UTC (permalink / raw)
  To: Teodor Zlatanov; +Cc: 19767

> I see lisp/emacs-lisp/cl-generic.el was added recently, and that's great.
> But the CL manual hasn't been updated, I think?

Indeed, that's the main missing part of cl-generic right now.

> I could try to help here, but I haven't used this facility before so I
> need some pointers.

cl-generic tries to implement generic function part of CLOS (CLOS
is the set of object-oriented features of Common-Lisp, and it includes
the definition of objects&classes as well as the definition of methods
which use the "generic function" approach).  I tried to follow CLOS
pretty closely for all the things where CLOS seemed sane (i.e. that
excludes method-combinations).

So there's existing docs ain the form of the "Common Lisp Hyperspec",
such as http://www.lispworks.com/documentation/HyperSpec/Body/07_fb.htm
but the copyright status of this is kind of murky (for example, the GCL
doc includes it, but Debian took it out from its gcl-doc package because
of this legal uncertainty), so we can't just use that, sadly.


        Stefan





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

end of thread, other threads:[~2015-02-04 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-04 12:22 bug#19767: 25.0.50; cl-defgeneric docs Teodor Zlatanov
2015-02-04 15:32 ` Stefan Monnier

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.