Re: CLOS Question - Making an object a constant
- From: "John Thingstad" <john.thingstad@xxxxxxxxx>
- Date: Thu, 29 Jun 2006 20:02:46 +0200
On Wed, 28 Jun 2006 23:09:38 +0200, Pascal Costanza <pc@xxxxxxxxx> wrote:
If it is too much work to change calls to slot-value, try this: Instead of giving the slots in the respective class "proper" names, use generated symbols instead. Like this:
(defclass some-class ()
((#.(gensym) :initarg :bla :reader bla)))
Then a slot-value function won't be able to access such a slot. (But be careful, this is quite gross and better be used only for debugging.)
Thanks Costanza. That is beutiful!
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
.
- References:
- CLOS Question - Making an object a constant
- From: skamboj
- Re: CLOS Question - Making an object a constant
- From: Pascal Costanza
- CLOS Question - Making an object a constant
- Prev by Date: Re: CLOS Question - Making an object a constant
- Next by Date: Re: What would a modern LispOS look like?
- Previous by thread: Re: CLOS Question - Making an object a constant
- Next by thread: Re: CLOS Question - Making an object a constant
- Index(es):