The Trunk: Kernel-eem.1193.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Kernel-eem.1193.mcz

commits-2
Eliot Miranda uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-eem.1193.mcz

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