Peter Graves | 4 Nov 2005 02:08

Re: class-precedence-list

On Thu, 3 Nov 2005 at 14:57:58 -0500, Kevin Reid wrote:
> On Nov 3, 2005, at 13:50, Peter Graves wrote:
> > On Thu, 3 Nov 2005 at 12:01:25 -0500, Kevin Reid wrote:
> >> I'm not sure whether this is a Bug, but it seems to me that since the
> >> "MOP" package exists, and system:class-precedence-list exists, the
> >> former should export the latter.
> >
> > I haven't done this because SYSTEM:CLASS-PRECEDENCE-LIST is (currently,
> > at least) an ordinary function, but MOP:CLASS-PRECEDENCE-LIST is
> > specified by AMOP to be a generic function.
> >
> > So SYSTEM:CLASS-PRECEDENCE-LIST needs to become a generic function.
>
> Isn't having MOP:CLASS-PRECEDENCE-LIST callable-but-not-defmethodable 
> no *less* useful than it not existing at all?

You have a point.

In any event, I've just checked in some changes that arrange things
correctly:

    CL-USER(1): (mop:class-precedence-list (find-class 'hash-table))
    (#<BUILT-IN-CLASS HASH-TABLE> #<BUILT-IN-CLASS T>)
    CL-USER(2): (type-of #'mop:class-precedence-list)
    STANDARD-GENERIC-FUNCTION

Thanks again for reminding me about this issue!

-Peter

-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php

Gmane