[Openmcl-devel] class precedence list

Didier Verna didier at lrde.epita.fr
Tue Jun 17 04:33:26 PDT 2008


Arthur W Cater <arthur.cater at ucd.ie> wrote:

> Loading the following:
>
> ; -----
> (defclass mymix () ())
>
> (defclass mysuper (mymix) ())
>
> (defclass myclass (mymix mysuper) ())
> ; -----
>
> causes an error
>> Error: Inconsistent superclasses for #<STANDARD-CLASS MYCLASS>
>> While executing: CCL::COMPUTE-CPL, in process Listener(5).
>
> I believe it is legal, but stand to be corrected. It compiles ok.

  I don't think CLOS can compute the class precedence list here
(probably because of the way it sorts the classes). But you can
(defclass myclass (mysuper mymix) ()) though (the other way around).

-- 
5th European Lisp Workshop at ECOOP 2008, July 7: http://elw.bknr.net/2008/

Didier Verna, didier at lrde.epita.fr, http://www.lrde.epita.fr/~didier

EPITA / LRDE, 14-16 rue Voltaire   Tel.+33 (0)1 44 08 01 85
94276 Le Kremlin-Bicêtre, France   Fax.+33 (0)1 53 14 59 22  didier at xemacs.org



More information about the Openmcl-devel mailing list