[pro] Initialization of shared slots

Pascal Costanza pc at p-cos.net
Sat Jan 8 14:48:33 UTC 2011


On 8 Jan 2011, at 14:15, Samium Gromoff wrote:

> On Fri, 7 Jan 2011 23:42:23 +0100, Pascal Costanza <pc at 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.

What exactly would you like to do? There are ways to do such things using the CLOS MOP...


Pascal

-- 
Pascal Costanza, mailto:pc at p-cos.net, http://p-cos.net
Vrije Universiteit Brussel
Software Languages Lab
Pleinlaan 2, B-1050 Brussel, Belgium










More information about the pro mailing list