GNU bug report logs -
#20420
25.0.50; eieio methods with optional arguments now fail
Previous Next
Reported by: Vitalie Spinu <spinuvit <at> gmail.com>
Date: Fri, 24 Apr 2015 19:29:01 UTC
Severity: normal
Found in version 25.0.50
Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 20420 <at> debbugs.gnu.org (full text, mbox):
> This sounds like a more involved version of what Clojure does with
> multimethods (also implemented in emacs multi.el package [1])
I didn't know about Clojure's defmulti. It's simple and elegant, I like it.
> If I understand correctly the dispatch function is like
> your generalizer.
Somewhat, yes. It's a bit more complex than that because in CLOS (and
even more so in cl-generic) the code to compute the dispatch value
depends on the actual methods defined, so cl-generic's "generalizers"
are objects which describe which code to use depending on which methods
are defined, and the actual value on which we dispatch is in general not
quite the same as the "premise" (i.e. the "specializer"), so the
generalizer also provides code to compute the specializer from the
dispatch value.
Stefan
This bug report was last modified 9 years and 61 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.