BUG with OrderedCollection new writeStream ?

nicolas cellier ncellier at ifrance.com
Thu Sep 20 19:43:06 UTC 2007


Paolo Bonzini a écrit :
> Damien Pollet wrote:
>> foo := OrderedCollection new writeStream.
>> foo nextPut: 42. "Say hello to the debugger"
> 
> The #writeStream method is in practice usable only for 
> ArrayedCollections; Glorp for example uses an AddingWriteStream which is 
> little more than an adaptor (#contents returns the collection, #nextPut: 
> uses #addAll:).  I'm curious, how does Nile solve this problem?
> 
> Paolo
> 
> 

VW solved the problem too, they use a message (collection growTo: 
newSize) or something like that instead of (collection class new: newSize).

Nicolas




More information about the Squeak-dev mailing list