Streaming on all collections
Damien Cassou
damien.cassou at laposte.net
Sun Feb 11 20:11:22 UTC 2007
Jon Hylands a écrit :
> On Sun, 11 Feb 2007 18:00:10 +0100, Damien Cassou
> <damien.cassou at laposte.net> wrote:
>
>> why isn't it possible to stream over OrderedCollections ?
>
> You can only add elements to an OrderedCollection by using #add: (or one of
> its variants). WriteStream assumes that if you send #new: to the class of
> the collection it is streaming over, you can then say #at: index put:
> value, where index <= the collections size.
Sorry, I was not clear enough. I'm not talking about implementation
details, but about semantic of streams. I don't understand why
WriteStreams would not deal with all kind of sequenceable collections.
--
Damien Cassou
More information about the Squeak-dev
mailing list
|