[Pkg] The Trunk: Kernel-fbs.759.mcz

commits at source.squeak.org commits at source.squeak.org
Sun May 12 11:01:53 UTC 2013


Frank Shearar uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-fbs.759.mcz

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

Name: Kernel-fbs.759
Author: fbs
Time: 12 May 2013, 11:58:00.306 am
UUID: 1638624e-62cd-461f-a062-31edc1105d93
Ancestors: Kernel-cmm.758

Fix minor typo.

=============== Diff against Kernel-cmm.758 ===============

Item was changed:
  ----- Method: Class>>rename: (in category 'class name') -----
  rename: aString 
  	"The new name of the receiver is the argument, aString."
  
  	| oldName newName |
  	(newName := aString asSymbol) = (oldName := self name)
  		ifTrue: [^ self].
  	(self environment includesKey: newName)
  		ifTrue: [^ self error: newName , ' already exists'].
  	(environment undeclared includesKey: newName)
+ 		ifTrue: [self inform: 'There are references to ' , aString printString , '
- 		ifTrue: [self inform: 'There are references to, ' , aString printString , '
  from Undeclared. Check them after this change.'].
  	name := newName.
  	self environment renameClass: self from: oldName!



More information about the Packages mailing list