[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: :accessor-prefix bug



> I think that that makes with-slots into a truly dangerous form.
> Code that uses with-slots without the :prefix can be broken by adding a
> slot to the class definition.

That's true whether or not the :prefix option is there, and whether or
not you use WITH-SLOTS or the accessor function directly. If you delete
a slot (for example) the accessor function is undefined, so any method
using the accessor function will break. Similarly, if you delete a
slot even using the :PREFIX option, the code within the WITH-SLOTS 
would need to be changed, otherwise it will break when you try to 
reference the slot next time (precisely, a call to SLOT-MISSING will
occur).

		Jim Kempf	kempf@hplabs.hp.com