> Nala Ginrut <nalagin...@gmail.com> writes: > > > yeah~you hit it precisely! > > But I'm not sure if I modified the slot-seting call > > I'm not clear what you mean by that.
yes, I don't need a "#:allocation #:virtual" actually, I want a customised "slot-set!" but a no-modified "slot-ref" while I'm reading the value. I mean you understood my problem. > > ,the result is all > > slot-set! procedure would be effected? > > No, that's not the case for either of my suggestions. > > If you invented something like `#:allocation #:custom-setter', it would > only apply to slots that had `#:allocation #:custom-setter' in their > slot definition. > > Regards, > Neil I considered this kind of solution could be more complicated, so I just modify my code to end this problem for a while. But I'd better go deep into the meta-class sometime. Thank you! -- GNU Powered it GPL Protected it GOD Blessed it HFG - NalaGinrut