On Fri, 7 Jan 2011 23:42:23 +0100, Pascal Costanza pc@p-cos.net wrote:
There is no real advantage in having shared slots over global special variables. On top of that, the slot access protocols in the CLOS MOP also don't work that well in conjunction with shared slots. So it's better to avoid them. Fortunately, this is the only feature in CLOS that doesn't make any sense, as far as I can tell.
This is sad, indeed, as shared slots could have been used to associate information with sub-lattice of the class relationship lattice. I have been tempted to do exactly this, multiple times, having, instead, to resort to manual storage of this information.