The Trunk: Collections-pre.837.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-pre.837.mcz

commits-2
Patrick Rein uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-pre.837.mcz

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

Name: Collections-pre.837
Author: pre
Time: 24 June 2019, 1:52:53.529208 pm
UUID: 182f9f97-631a-064e-a5f8-c4d060b4253f
Ancestors: Collections-pre.836

Extends the #asOctetString comment.

=============== Diff against Collections-pre.836 ===============

Item was changed:
  ----- Method: String>>asOctetString (in category 'converting') -----
  asOctetString
+ "Convert the receiver into an octet string if possible. The resulting string will contain
+ only bytes if all characters fit into bytes. If there is any character > 255 the resulting
+ string will be a WideString instead."
- "Convert the receiver into an octet string"
  | string |
  string := String new: self size.
  1 to: self size do: [:i | string at: i put: (self at: i)].
  ^string!