The Trunk: Collections-topa.665.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-topa.665.mcz

commits-2
Tobias Pape uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-topa.665.mcz

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

Name: Collections-topa.665
Author: topa
Time: 8 October 2015, 8:33:41.622 pm
UUID: 4ec6165c-480c-483d-bce3-ca38e3a71e10
Ancestors: Collections-topa.664

#oldBack is deprecated, inline it into its sole sender.

=============== Diff against Collections-topa.664 ===============

Item was changed:
  ----- Method: PositionableStream>>peekBack (in category 'accessing') -----
  peekBack
  "Return the element at the previous position, without changing position.  Use indirect messages in case self is a StandardFileStream."
 
  | element |
+ self position = 0 ifTrue: [self errorCantGoBack].
+ self position = 1 ifTrue: [self position: 0.  ^ nil].
+ self skip: -2.
+ element := self next.
- element := self oldBack.
  self skip: 1.
  ^ element!