The Trunk: Kernel-hsj.547.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-hsj.547.mcz

commits-2
Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-hsj.547.mcz

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

Name: Kernel-hsj.547
Author: hsj
Time: 16 February 2011, 1:45:07.199 pm
UUID: 46e9ff86-8023-4720-a146-7eb8a2d2fb30
Ancestors: Kernel-fbs.546

Fixes inconsistency in return value of adoptInstance: on different VM's.

=============== Diff against Kernel-fbs.546 ===============

Item was changed:
  ----- Method: Behavior>>adoptInstance: (in category 'instance creation') -----
  adoptInstance: anInstance
  "Change the class of anInstance to me.
+ Primitive (found in Cog and new VMs)  follows the same rules as primitiveChangeClassTo:, but returns the class rather than the modified instance"
- Primitive (only found in Cog) should follow the same rules as described in primitiveChangeClassTo:"
 
  <primitive: 160 error: ec>
+ anInstance primitiveChangeClassTo: self basicNew.
+ ^self!
- ^anInstance primitiveChangeClassTo: self basicNew.!