[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: :accessor-prefix bug
- To: Rick.Busdiecker@cs.cmu.edu
- Subject: Re: :accessor-prefix bug
- From: kempf%hplabsz@hplabs.HP.COM
- Date: Wed, 30 Sep 87 10:02:36 MST
- Cc: CommonLoops.PA@Xerox.COM
- In-reply-to: Your message of 30 Sep 87 11:10:00 -0400. <560013020/rfb@H.GP.CS.CMU.EDU>
- Redistributed: CommonLoops.PA
> 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