[squeak-dev] The Trunk: Kernel-eem.687.mcz

commits at source.squeak.org commits at source.squeak.org
Tue May 15 16:47:18 UTC 2012


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

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

Name: Kernel-eem.687
Author: eem
Time: 15 May 2012, 9:46:07.158 am
UUID: 66ea6288-0642-439c-bc13-ae34900d2382
Ancestors: Kernel-nice.686

Provide a more helpful comment for Class>>copy.

=============== Diff against Kernel-nice.686 ===============

Item was changed:
  ----- Method: Class>>copy (in category 'copying') -----
  copy 
+ 	"Answer a copy of the receiver without a list of subclasses.
+ 	 This copy is used by the ClassBuilder when mutating classes on redefinition.
+ 	 (SystemNavigation new browseAllCallsOn: #copy localTo: ClassBuilder)"
- 	"Answer a copy of the receiver without a list of subclasses."
  	| newClass |
  	newClass := self class copy new
  		superclass: superclass
  		methodDict: self methodDict copy
  		format: format
  		name: name
  		organization: self organization copy
  		instVarNames: instanceVariables copy
  		classPool: classPool copy
  		sharedPools: sharedPools copy.
  	Class instSize+1 to: self class instSize do:
  		[:offset | newClass instVarAt: offset put: (self instVarAt: offset)].
  	^ newClass!



More information about the Squeak-dev mailing list