Streaming on OrderedCollection

Bob Arning arning at charm.net
Thu Sep 3 19:40:25 UTC 1998


Travis,

A couple of thoughts - 

I seem to remember OrderedCollection>>at:put: in VSE assuming the client was a bit more knowledgeable and simply adjusting the contents (i.e. growing them) so that #at:put: would work.

Do you really want a stream on an OrderedCollection? There are probably other similar problems lurking here (OrderedCollection>>size, e.g.). In addition you are incurring an extra level of overhead - especially since some methods in Stream classes are actually primitives that work for String and Array collections. Perhaps you'll be happier all around using an Array instead.

I also think Allen's recent suggestion on another subject a good one. When we are dealing with such fundamental areas, it would pay to see what the ANSI spec says and move in that direction unless we see a compelling reason to do otherwise.

Cheers,
Bob





More information about the Squeak-dev mailing list