[Pkg] The Trunk: Kernel-eem.1193.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 29 23:06:11 UTC 2018

Eliot Miranda uploaded a new version of Kernel to project The Trunk:

==================== Summary ====================

Name: Kernel-eem.1193
Author: eem
Time: 29 October 2018, 4:05:45.263515 pm
UUID: 003c6ae4-79d6-48f7-8f8a-9cc1a37690f8
Ancestors: Kernel-ul.1192

Provide changeClassTo: as a convenient way of accessing adoptInstance:, and a better replacement for the older primitiveChangeClassTo:.

=============== Diff against Kernel-ul.1192 ===============

Item was added:
+ ----- Method: Object>>changeClassTo: (in category 'converting') -----
+ changeClassTo: aBehavior
+ 	"Change the class of the receiver to the argument, provided
+ 	 that the format of the argument matches the format of the receiver's class."
+ 	aBehavior adoptInstance: self.
+ 	^self!

More information about the Packages mailing list