<div dir="ltr">IMO ReadWriteStream is an awfull mess and should better not be used at all.<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-01 22:00 GMT+02:00 Chris Muller <span dir="ltr"><<a href="mailto:ma.chris.m@gmail.com" target="_blank">ma.chris.m@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Does anyone know why ReadWriteStream overrides #contents from WriteStream?<div><br></div><div>WriteStream behaves as I would expect</div><div><br></div><div><div>   |stream| stream := WriteStream on: String new.</div><div>   stream nextPutAll: 'chris'; reset; nextPutAll: 'C'; contents     "--->  'C'   as expected"<br></div></div><div><br></div><div>but ReadWriteStream doesn't...</div><div><br></div><div><div>   |stream| stream := ReadWriteStream on: String new.</div><div>   stream nextPutAll: 'chris'; reset; nextPutAll: 'C'; contents     "---> 'Chris'   unexpected!"</div></div><div><br></div><div>I want to reuse a ReadWriteStream, so I want #contents to honor the end position.  What's going on here?</div></div>
<br><br>
<br></blockquote></div><br></div>