Lukas already replied and this is for this reason that we should  
continue to work on Nile
because with Nile you get real streams.

Stef

On Apr 11, 2009, at 7:39 PM, Oscar Nierstrasz wrote:

>
> Can anyone explain to me why this works fine:
>
> ((WriteStream on: (Array new)) nextPut: #foo) contents.
>
> but this doesn't?
>
> ((WriteStream on: (OrderedCollection new)) nextPut: #foo) contents.
>
> The debugger shows that WriteStream>>nextPut: invokes
> WriteStream>>pastEndPut: which invokes at:put: on the collection.
>
> This is ok for an array, but not for an OrderedCollection, as
> OrderedCollection>>at:put: explicitly states it cannot be used to
> append stuff to the end of the collection.
>
> Is it a bug in WriteStream that it sends at:put:, or does it just not
> make sense to have a WriteStream on an Ordered Collection?
>
> (This is related to the split and join methods -- because of this
> limitation, an OrderedCollection cannot be used as a joiner, it  
> seems.)
>
> - on
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to