[squeak-dev] The Trunk: Kernel-hsj.547.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Feb 28 11:25:10 UTC 2011

Levente Uzonyi uploaded a new version of Kernel to project The Trunk:

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

More information about the Squeak-dev mailing list