BUG with OrderedCollection new writeStream ?
Paolo Bonzini
bonzini at gnu.org
Fri Sep 21 07:33:14 UTC 2007
>> Neither, it's a decorator :-)
>
> Assuming you represent every new write stream as a decorator (I was only
> giving an example).
Understood, hence the smiley.
>> ... with a single polymorphic way to create the stream.
>
> Plus having to have all new write streams be decorators. It's doable but
> doesn't strike me as superior to adding a single method in two classes.
True, but that's a very good thing to do anyway. Streams are very apt
to being written as decorators, and if you didn't use a decorator, the
same problem you have with WriteStream/AddingWriteStream would be
present with WriteStream/FileStream.
Paolo
More information about the Squeak-dev
mailing list
|