On Tue, Nov 16, 2010 at 2:22 AM, Pascal Costanza <span dir="ltr"><<a href="mailto:pc@p-cos.net">pc@p-cos.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style=""><br><div><div>Note that it is always possible to have several accessors with different names. So you could define something like this:</div><div><br></div><div>(defclass foo ()</div><div> ((some-slot :reader official-slot-reader :accessor %internal-slot-accessor) ...))</div>
<div><br></div></div></div></blockquote><div><br>I like this, actually, because it warns the reader that although the slot is not to be written by clients, it may nonetheless change; the client mustn't assume it's constant. Personally I think this is better than using SLOT-VALUE, unless the only time it's written is for initialization.<br>
<br>-- Scott<br><br></div></div><br>