[Cuis-dev] [BUG] --- deleting an instance variable may install duplicate classes

Andres Valloud ten at smallinteger.com
Tue Dec 28 08:57:12 PST 2021


Hi, if you try removing an instance variable from a class, and there are 
processes that began in instances of that class, then

	ClassDescription>>updateInstancesFrom:

complains that you can potentially break the system if the processes 
start accessing the instance using the wrong instance variable indices.

The problem is that if you then close the debugger, by that time the 
compilation process has installed duplicate classes in the system.  So, 
the test should run first, and if it passes then the new class should be 
created and installed in the system.

Andres.


More information about the Cuis-dev mailing list