<div dir="ltr"><div><div><div><div><div><div><div>Hi, I need to retrieve the last object put on a Stream (well SmartRefStream does).<br></div>This is very much like #ensureEndsWith:<br><br></div>There is back, but back leave the stream positionned before the last object.<br>
<br>((ReadWriteStream on: String new) nextPutAll: &#39;abc&#39;; back) -&gt; $c<br>((ReadWriteStream on: String new) nextPutAll: &#39;abc&#39;; back; position) -&gt; 2.<br><br></div>There is peekBack, but peekBack answers the last but one...</div>
<div><br></div>((ReadWriteStream on: String new) nextPutAll: &#39;abc&#39;; peekBack) -&gt; $b.<br>((ReadWriteStream on: String new) nextPutAll: &#39;abc&#39;; peekBack; position) -&gt; 3.<br><br><div>Note that neither back nor peekBack is understood by a WriteStream.<br>
</div>It requires a ReadWriteStream.<br><br></div>Since peekBack is the sole sender of oldBack in trunk, I wonder who is using it?<br></div>I ask because I&#39;d like to change the meaning of peekBack to that of back instead of oldBack.<br>
</div>Unless you have a better selector to propose?<br><div><div><div><br></div></div></div></div>