The Trunk: 51Deprecated-topa.3.mcz

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

The Trunk: 51Deprecated-topa.3.mcz

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

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

Name: 51Deprecated-topa.3
Author: topa
Time: 8 October 2015, 8:25:42.498 pm
UUID: 1fdef080-96b5-4db2-bf16-bef5d910bec1
Ancestors: 51Deprecated-topa.2

Deprecate oldBack

=============== Diff against 51Deprecated-topa.2 ===============

Item was added:
+ ----- Method: PositionableStream>>oldBack (in category '*51Deprecated-accessing') -----
+ oldBack
+ "Go back one element and return it.  Use indirect messages in case I am a StandardFileStream"
+ "The method is a misconception about what a stream is. A stream contains a pointer *between* elements with past and future elements. This method considers that the pointer is *on* an element. Please consider unit tests which verifies #back and #oldBack behavior. (Damien Cassou - 1 August 2007)"
+ self position = 0 ifTrue: [self errorCantGoBack].
+ self position = 1 ifTrue: [self position: 0.  ^ nil].
+ self skip: -2.
+ ^ self next
+ !