Re: Specializing slot-value-using-class in OpenMCL
- From: Pascal Costanza <pc@xxxxxxxxx>
- Date: Thu, 31 May 2007 01:07:48 +0200
Slava Akhmechet wrote:
Pascal Costanza <pc@xxxxxxxxx> writes:
I hope this helps.Thank you, it helps a lot! I just tried the fix and it works. I only
have one last question. Why are metaclasses are not inherited?
There is no simple and straightforward to way integrate this into CLOS because of multiple inheritance and also forward referenced classes. It would also be conceptually weird, IMHO.
Metaclass of 'b' will be standard-class (which causes problems). I
manually added the metaclass declaration to all relevant class, but is
there a way to simply propagate it from base class?
What seems to be done a lot is (a) to provide your variant of the defclass macro that automatically insert the right :metaclass option for you and sometimes even (b) to shadow cl:defclass. In this way you can ensure that all classes in your system have the same customized metaclass.
Pascal
--
My website: http://p-cos.net
Common Lisp Document Repository: http://cdr.eurolisp.org
Closer to MOP & ContextL: http://common-lisp.net/project/closer/
.
- References:
- Specializing slot-value-using-class in OpenMCL
- From: Slava Akhmechet
- Re: Specializing slot-value-using-class in OpenMCL
- From: Pascal Costanza
- Re: Specializing slot-value-using-class in OpenMCL
- From: Slava Akhmechet
- Re: Specializing slot-value-using-class in OpenMCL
- From: Pascal Costanza
- Re: Specializing slot-value-using-class in OpenMCL
- From: Slava Akhmechet
- Specializing slot-value-using-class in OpenMCL
- Prev by Date: Re: Specializing slot-value-using-class in OpenMCL
- Next by Date: Re: LW 5 FLI issues on OS X
- Previous by thread: Re: Specializing slot-value-using-class in OpenMCL
- Next by thread: Why I love Common Lisp : power! power! power!
- Index(es):
Relevant Pages
|