On 11/14/06, <b class="gmail_sendername">Jon Hylands</b> &lt;<a href="mailto:jon@huv.com">jon@huv.com</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The way I use them is this:<br><br>(writing) - same as you do<br>(reading)<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;| file object |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file := FileStream readOnlyFileNamed: 'data.obj'.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;object := file fileInObjectAndCode.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;file close.
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^object<br></blockquote><div><br>Is there a reason why SmartRefStream has such a radically different interface than ReferenceStream, even though it's a direct subclass? That seems really misleading. At the very least, the class comment should say explicitly, right at the top, that SmartRefStream should only be used via FileStream, but to be honest that's just a superficial band-aid over a horrible design bug. Either the class should be renamed and broken out of the hierarchy or it should obey the same rules as its parent class.
<br></div></div>