[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone
Re: GOOPS:Can I just overload "slot-set!" under #:virtual and let alone "slot-ref" ?
Sun, 12 Dec 2010 17:42:39 +0800
> Nala Ginrut <address@hidden> 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.
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.
GNU Powered it
GPL Protected it
GOD Blessed it
HFG - NalaGinrut