🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.clos
Article #574

Redefining Classes in CLOS

#574
From: Stewart Clamen
Date: Thu, 16 May 1991 02:37
38 lines
2125 bytes
Section 28.1.10 in the 2nd Edition of CLtL features the following:

	A class that is in an instance of STANDARD-CLASS can
	be redefined if the new class will also be an
	instance of STANDARD-CLASS.  Redefining a class
	modifies the existing class object to reflect the
	new class definition; it does not create a new class
	object for the class. [rest of paragraph omitted --
	SMC] 

	When the class C is redefined, changes are
	propogated to its instances and to instances of any
	of its subclasses.  Updating such an instance occurs
	at an implementation-dependent time, but no later
	than the next time a slot of that instance is read
	or written.  Updating an instance does not change
	its indentity as defined by the EQ function.  The
	updating process may change the slots of that
	particular instance, but it does not create a new
	instance.  Whether updating an instance comsumes
	storage is implementation-dependent.

	...

I am curious as to how the current implementations of CLOS (both
commercial and research) attempt to conform to this specification.  Is
this feature generally supported yet?  Do implementations that do
support it convert all instances at the time of class redefinition, or
"lazily"?  Are there limitations on the types of changes that can be
made to a class?


--
Stewart M. Clamen			Internet:    clamen@cs.cmu.edu
School of Computer Science		UUCP: 	     uunet!"clamen@cs.cmu.edu"
Carnegie Mellon University		Phone: 	     +1 412 268 3620
Pittsburgh, PA 15213-3890, USA		Fax:	     +1 412 268 1793
Technical Details
Message-ID: <CLAMEN.91May15223722@BYRON.SP.CS.CMU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!o.gp.cs.cmu.edu!netnews.srv.cs.cmu.edu!clamen

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tut.cis.ohio-state.edu!sei.cmu.edu!fs7.ece.cmu.edu!o.gp.cs.cmu.edu!netnews.srv.cs.cmu.edu!clamen
From: clamen@CS.CMU.EDU (Stewart Clamen)
Newsgroups: comp.lang.clos
Subject: Redefining Classes in CLOS
Message-ID: <CLAMEN.91May15223722@BYRON.SP.CS.CMU.EDU>
Date: 16 May 91 02:37:28 GMT
Sender: netnews@cs.cmu.edu (USENET News Group Software)
Reply-To: clamen+@CS.CMU.EDU
Organization: School of Computer Science, Carnegie Mellon University
Lines: 38