[squeak-dev] The Trunk: Collections-nice.933.mcz
commits at source.squeak.org
commits at source.squeak.org
Sat Apr 10 19:17:49 UTC 2021
Nicolas Cellier uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-nice.933.mcz
==================== Summary ====================
Name: Collections-nice.933
Author: nice
Time: 10 April 2021, 9:16:54.312889 pm
UUID: c066bf52-b7a5-474a-9614-90bbc3212e07
Ancestors: Collections-ul.932
Quick fix for double utf8->squeak conversion via nextChunk.
(MultiByteFileStream newFileNamed: 'foo.utf8') nextPutAll: 'À'; close.
(MultiByteFileStream oldFileNamed: 'foo.utf8') nextChunk.
=============== Diff against Collections-ul.932 ===============
Item was changed:
----- Method: PositionableStream>>basicUpTo: (in category 'private basic') -----
basicUpTo: anObject
"Answer a subcollection from the current access position to the
occurrence (if any, but not inclusive) of anObject in the receiver. If
anObject is not in the collection, answer the entire rest of the receiver."
| newStream element |
newStream := WriteStream on: (self collectionSpecies new: 100).
+ [self atEnd or: [(element := self basicNext) = anObject]]
- [self atEnd or: [(element := self next) = anObject]]
whileFalse: [newStream nextPut: element].
^newStream contents!
More information about the Squeak-dev
mailing list
|