GNU bug report logs - #29786
27.0.50; About the argument list of methods

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Wed, 20 Dec 2017 12:39:02 UTC

Severity: minor

Found in version 27.0.50

Full log


Message #11 received at 29786 <at> debbugs.gnu.org (full text, mbox):

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: 29786 <at> debbugs.gnu.org
Subject: Re: bug#29786: 27.0.50; About the argument list of methods
Date: Wed, 27 Dec 2017 13:29:23 +0100
Stefan Monnier <monnier <at> IRO.UMontreal.CA> writes:

> > (cl-defmethod seq-mapn (function (stream stream) &rest streams)
> >   "Map FUNCTION over the STREAMS.
> >
> > Example: this prints the first ten Fibonacci numbers:
> >
> >   (letrec ((fibs (stream-cons
> >                   1
> >                   (stream-cons
> >                    1
> >                    (seq-mapn #'+ fibs (stream-rest fibs))))))
> >     (seq-do #'print (seq-take fibs 10)))
> >
> > \(fn FUNCTION STREAMS...)"
>
> I think this "\(fn FUNCTION STREAMS...)" thingy doesn't make sense for
> `cl-defmethod`: it only makes sense for `cl-defgeneric`.

But it does make sense in this example, no?


Thanks,

Michael.




This bug report was last modified 7 years and 173 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.