Mantis - Squeak
Viewing Issue Advanced Details
6583 Collections minor always 08-01-07 14:36 11-25-08 23:20
Damien Cassou  
 
normal  
closed 3.10  
7130 fixed  
none    
none 3.10  
0006583: PositionableStream>>back behavior is totally wrong
The current method #back 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.

Attached changeset:
- renames #back to #oldBack for backward compatibility
- implements #back
- adds 4 tests.

Please consider unit tests in the changeset which verifies #back and #oldBack behavior.

duplicate of 0000368closed  PositionalStream>>back is not doing what it says 
 Collections-dc.89.mcz [^] (348,898 bytes) 08-02-07 09:51
 CollectionsTests-dc.72.mcz [^] (69,315 bytes) 08-02-07 09:51

Notes
(0010953)
Damien Cassou   
08-01-07 14:44   
Same as: http://bugs.squeak.org/view.php?id=368 [^]
(0010956)
Damien Cassou   
08-02-07 09:52   
Please use the two mcz instead of FixingBackBehavior.1.cs.

They contain more changes:

- #peekBack has been fixed to follow the #back behavior.
(0012806)
KenCausey   
11-25-08 23:20   
Harvested as update 7146 and released in Squeak 3.10.