[squeak-dev] Re: OrderedCollection grow behaviour

Andreas Raab andreas.raab at gmx.de
Mon Aug 3 06:36:28 UTC 2009


Chiricozzi Walter wrote:
> Hi all, 
> Is it  safe to modify the OrderedCollection behaviour this way?

Yes, since it is identical to the current implementation.

Cheers,
   - Andreas

> 
> 
> OrderedCollection >> grow 
> 
> | t1 |
> 	t1 := Array new: self growSize.
> 	t1
> 		replaceFrom: 1
> 		to: array size
> 		with: array
> 		startingAt: 1.
> 	array := t1
> 
> OrderedCollection >> growsize
> growSize
> 	^ array size * 2
> 
> TIA
> 
> 
> 
> -------------------------------
> Message for the recipient only, if received in error, please notify the sender and read www.enav.it/disclaimer
> 
> 




More information about the Squeak-dev mailing list