SmartRefStream broken?

Benjamin Pollack benjamin.pollack at gmail.com
Tue Nov 14 21:20:26 UTC 2006


On 11/14/06, Jon Hylands <jon at huv.com> wrote:
>
> The way I use them is this:
>
> (writing) - same as you do
> (reading)
>
>         | file object |
>         file := FileStream readOnlyFileNamed: 'data.obj'.
>         object := file fileInObjectAndCode.
>         file close.
>         ^object
>

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20061114/1a601ee8/attachment.htm


More information about the Squeak-dev mailing list