[squeak-dev] The Trunk: Collections-mt.840.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jul 12 06:38:56 UTC 2019

Marcel Taeumel uploaded a new version of Collections to project The Trunk:

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

Name: Collections-mt.840
Author: mt
Time: 12 July 2019, 8:38:57.127612 am
UUID: aa463bb4-e73d-cf40-b565-c8f87687be06
Ancestors: Collections-mt.839

Removes last traces of special treatment for one-character symbols.

See http://forum.world.st/Symbol-gt-OneCharacterSymbols-td5101085.html

=============== Diff against Collections-mt.839 ===============

Item was changed:
  ----- Method: Character>>asSymbol (in category 'converting') -----
  	"Answer a Symbol consisting of the receiver as the only element."
+ 	^Symbol intern: self asString!
- 	^Symbol internCharacter: self!

Item was changed:
  String subclass: #Symbol
  	instanceVariableNames: ''
+ 	classVariableNames: 'NewSymbols SymbolTable'
- 	classVariableNames: 'NewSymbols OneCharacterSymbols SymbolTable'
  	poolDictionaries: ''
  	category: 'Collections-Strings'!
  !Symbol commentStamp: '<historical>' prior: 0!
  I represent Strings that are created uniquely. Thus, someString asSymbol == someString asSymbol.!

Item was removed:
- ----- Method: Symbol class>>internCharacter: (in category 'instance creation') -----
- internCharacter: aCharacter
- 	^self intern: aCharacter asString!

More information about the Squeak-dev mailing list