Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ar.397.mcz==================== Summary ====================
Name: Collections-ar.397
Author: ar
Time: 25 October 2010, 7:04:17.681 pm
UUID: 9b97769f-1f5e-3a47-890d-2292d07b6b1f
Ancestors: Collections-dtl.396
Make Character class>>separators and Character class>>allByteCharacters return strings instead of Arrays (since there is no good reason to use arrays and it solves the immediate issue observed in Mantis #7564). Also provide CharacterSet>>asString to enable its use in concatenation (i.e., '/', CharacterSet separators).
=============== Diff against Collections-dtl.396 ===============
Item was changed:
----- Method: Character class>>allByteCharacters (in category 'instance creation') -----
allByteCharacters
"Answer all the characters that can be encoded in a byte"
+ ^ (0 to: 255) collect: [:v | Character value: v] as: String
- ^ (0 to: 255) collect: [:v | Character value: v]
-
-
!
Item was changed:
----- Method: Character class>>separators (in category 'instance creation') -----
separators
+ "Answer a collection of the standard ASCII separator characters."
+
^ #(32 "space"
13 "cr"
9 "tab"
10 "line feed"
12 "form feed")
+ collect: [:v | Character value: v] as: String!
- collect: [:v | Character value: v]
-
-
- !
Item was added:
+ ----- Method: CharacterSet>>asString (in category 'conversion') -----
+ asString
+ "Convert the receiver into a String"
+
+ ^String new: self size streamContents:[:s|
+ self do:[:ch| s nextPut: ch].
+ ].!