[Ecls-list] Method specialization error
H Duerer
h.duerer at gmail.com
Wed Jan 11 01:52:01 UTC 2006
On 10/01/06, Juan Jose Garcia Ripoll <lisp at arrakis.es> wrote:
>
> On Tue, 2006-01-10 at 12:14 -0800, Greg Pfeil wrote:
> > Of course, specialization can happen on any type, not just classes,
>
> This is wrong. From DEFMETHOD in Hyperspec
>
> "The specialized-lambda-list argument is like an ordinary lambda list
> except that the names of required parameters can be replaced by
> specialized parameters. A specialized parameter is a list of the form
> (var parameter-specializer-name). Only required parameters can be
> specialized. If parameter-specializer-name is a symbol it names a class;
> if it is a list, it is of the form (eql eql-specializer-form)."
>
> At some point I will implement a FIXNUM class, if only because people
> typically write code for CMUCL and expect this class to be there, though
> it does not belong to the standard.
>
I was quite surprised to read this. For the benefit of other Lisp newbies
like me (and in the hope that this email archive is somehow searchable by
Google and friends) one might add a reference to section 4.3.7 of the
hypersepc (http://www.lispworks.com/documentation/HyperSpec/Body/04_cg.htm)
and especially figure 4-8 there which lists which types need to have a class
equivalent.
I also found http://cl-cookbook.sourceforge.net/clos-tutorial/ (see section
3.4 which even has a note about fixnum missing) useful.
Holger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20060111/cf655a2a/attachment.html>
More information about the ecl-devel
mailing list