[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
accessing default values in classes
- To: peter-s@molbio.cbs.umn.edu
- Subject: accessing default values in classes
- From: us015029@mmm.serc.3m.com (John E. Collins)
- Date: Fri, 2 Feb 90 14:32:48 CST
- Cc: commonloops.pa@Xerox.COM, norbert@molbio.cbs.umn.edu
- In-reply-to: "Peter N. Saurugger"'s message of Thu, 1 Feb 90 19:52:05 CST <9002020152.AA00732@molbio.cbs.umn.edu>
- Redistributed: commonloops.pa
I would like to find out whether there is a defined way of accessing the
default values in classes. The accessors seem to work only with instances
for me.
Isn't this what class-prototype is for? It seems to me that
(class-prototype some-class-object)
returns something that looks like a "default" instance of the class in
question. You can then access it as a normal instance. I have
several times used this to get at class-allocation slots when I didn't
have ready access to an instance of the class.
------------------------------------------------------------------------
John Collins Phone: +1 (612) 736 0778
3M Company FAX: +1 (612) 733 2165
3M Center, Building 260-6A-08 Internet: jecollins@serc.3M.com
St. Paul, MN 55144-1000 UUCP: ...!uiucuxc!mmm!jecollins
------------------------------------------------------------------------