[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
A question
- To: CommonLoops.pa@Xerox.COM
- Subject: A question
- From: Gavin L. Hemphill <Gavin@DREA-BALROG.ARPA>
- Date: Fri, 8 Apr 88 13:29 ADT
- Phone-number: (902) 426-3100 x 182 [8:00am to 4:15pm Alantic Time]
- Redistributed: CommonLoops.pa
- Template-for-reply: COMPATIBLE-1R-REPLY-TEMPLATE
(dumb question of the month :-) )
Is it possible to define a class (say class2) based on an instance of a
superior class (class1) in such a way that the value in a slot of an
instance of class1 is shared by instances of class2 (i.e., changes to the
value of the slot in an instance of class2 are visible to the methods
associated with class1 and vice versa).
In my reading of the CLOS spec I'm not sure if this is a reasonable
thing to expect to be able to do, or if it is, how one goes about
defining that behavior.
G++
-------