Re: CLOS Question - Making an object a constant



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/
.