[squeak-dev] The Trunk: Kernel-HenrikSperreJohansen.522.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Dec 12 15:31:35 UTC 2010


Levente Uzonyi uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-HenrikSperreJohansen.522.mcz

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

Name: Kernel-HenrikSperreJohansen.522
Author: HenrikSperreJohansen
Time: 10 December 2010, 11:35:02.564 am
UUID: 52384bb5-4b18-9e49-8292-cf8bb55e06aa
Ancestors: Kernel-ul.521

adoptInstance: , an alternative interface to primitiveChangeClassTo:.

Uses primitive if available, if not the equivalent primitiveChangeClassTo: expression (only in Cog for now)

=============== Diff against Kernel-ul.521 ===============

Item was added:
+ ----- Method: Behavior>>adoptInstance: (in category 'instance creation') -----
+ adoptInstance: anInstance
+ 	"Change the class of anInstance to me.
+ 	Primitive (only found in Cog) should follow the same rules as described in 	primitiveChangeClassTo:"
+ 
+ 	<primitive: 160 error: ec>
+ 	^anInstance primitiveChangeClassTo: self basicNew.!




More information about the Squeak-dev mailing list