Roles of FileStream (was: Re: New SqueakMap)
Josh Gargus
schwa at fastmail.us
Wed Apr 12 22:30:53 UTC 2006
Oops, I was referring to the magical perfect SmartRefStream in my
head, not the one we actually have :-) Thanks for the correction.
Josh
On Apr 12, 2006, at 5:25 PM, Yoshiki Ohshima wrote:
> Josh,
>
>> It seems to me that character-oriented streams (and any other streams
>> that deal with structured data) should be layered on top of byte-
>> oriented streams, as is done by SmartRefStream (through its
>> superclass, DataStream). A SmartRefStream doesn't care whether it's
>> ultimately reading from / writing to a buffer in memory, from a file,
>> or a network socket connection; that's the responsibility of its
>> 'byteStream'.
>
> Almost, yes. Just the fact that SmarRefStream sends #ascii (old
> day's #text, I consider) and #binary and sometimes it reads some
> encoded text from byteStream suggests it is overdue of refactoring.
>
> -- Yoshiki
>
>
More information about the Squeak-dev
mailing list
|