[squeak-dev] #streamContents: on OrderedCollection broken?
David T. Lewis
lewis at mail.msen.com
Mon May 26 12:15:32 UTC 2014
On Mon, May 26, 2014 at 02:56:20AM -0700, Marcel Taeumel wrote:
> Should this work?
>
> OrderedCollection streamContents: [:result |
> result nextPutAll: #(a b c) asOrderedCollection].
>
It certainly looks like it should work.
Camillo Bruni addressed this case in Pharo by intoducing #streamSpecies, which
seems like a reasonable approach.
Discussion was here: http://forum.world.st/WriteStream-nextPutAll-OrderedCollections-td4634624.html
Dave
> Well, this works:
>
> OrderedCollection streamContents: [:result |
> result nextPutAll: #(a b c)].
>
> And this works, too:
>
> OrderedCollection streamContents: [:result |
> result nextPut: #foo; nextPutAll: #(a b c) asOrderedCollection].
>
> Best,
> Marcel
>
More information about the Squeak-dev
mailing list
|