[squeak-dev] The Inbox: Kernel-cmm.830.mcz

Tobias Pape Das.Linux at gmx.de
Wed Jan 8 08:40:34 UTC 2014


On 08.01.2014, at 03:31, commits at source.squeak.org wrote:

> A new version of Kernel was added to project The Inbox:
> http://source.squeak.org/inbox/Kernel-cmm.830.mcz
> 
> ==================== Summary ====================
> 
> Name: Kernel-cmm.830
> Author: cmm
> Time: 7 January 2014, 9:31:35.206 pm
> UUID: 43453587-ee4b-48e4-93ec-43983f0c82ed
> Ancestors: Kernel-fbs.829
> 
> Removing a class should remove its subclasses too.
> 

No. See comment

> =============== Diff against Kernel-fbs.829 ===============
> 
> Item was changed:
>  ----- Method: Class>>removeFromSystem: (in category 'initialize-release') -----
>  removeFromSystem: logged
>  	"Forget the receiver from the Smalltalk global dictionary. Any existing 
>  	instances will refer to an obsolete version of the receiver."

That means, the subclasses will be subclasses from the obsoleted class.

>  	"keep the class name and category for triggering the system change message. If we wait to long, then we get obsolete information which is not what we want."
> 
>  	"tell class to deactivate and unload itself-- two separate events in the module system"
> + 	self subclassesDo: [ : each | each removeFromSystem: logged ].
>  	self deactivate; unload.
>  	self superclass ifNotNil:
>  		["If we have no superclass there's nothing to be remembered"
>  		self superclass addObsoleteSubclass: self].
>  	self environment forgetClass: self logged: logged.
>  	self obsolete.!
> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1665 bytes
Desc: Message signed with OpenPGP using GPGMail
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140108/314faa27/signature.pgp


More information about the Squeak-dev mailing list