Specializing slot-value-using-class in OpenMCL
- From: Slava Akhmechet <coffeemug@xxxxxxxxx>
- Date: Wed, 30 May 2007 13:52:27 GMT
I am trying to add custom behavior to slot access by specializing
slot-value-using-class. Specifically, I want to add classes whose slot
values have been modified to a list of "dirty" classes. My code works
properly on SBCL but I run into problems on OpenMCL.
As mentioned elsewhere, OpenMCL optimizes away slot-value-using-class
within let forms[1]. I wasn't able to find any information about
turning off this optimization. Lispworks provides
':optimize-slot-access' option in class definition, is there something
similar in OpenMCL?
Elephant seems to support OpenMCL, so there must be a way to do
this. Unfortunately it seems that information is rather scarce.
[1] Curiously, this seems to work when the accessed slot symbol is in
a different package. However, variables declared as special in the let
form can't seem to be accessed from the specialized version of
slot-value-using-class.
--
Regards,
Slava Akhmechet.
.
- Follow-Ups:
- Re: Specializing slot-value-using-class in OpenMCL
- From: Pascal Costanza
- Re: Specializing slot-value-using-class in OpenMCL
- Prev by Date: Re: Dumbing down?
- Next by Date: Re: Specializing slot-value-using-class in OpenMCL
- Previous by thread: code critique
- Next by thread: Re: Specializing slot-value-using-class in OpenMCL
- Index(es):