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

accessing default values in classes



   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
------------------------------------------------------------------------