[FIX] CopyWithoutIndexFix.06Dec1418.cs

Robert Hirschfeld hirschfeld at windwardsolutions.com
Thu Dec 6 13:23:19 UTC 2001


'From Squeak3.2alpha of 3 October 2001 [latest update: #4554] 
on 6 December 2001 at 2:18:57 pm'!

"Change Set:		CopyWithoutIndexFix
Date:			6 December 2001
Author:			Robert Hirschfeld

Makes copyWithoutIndex: work also with OrderedCollections by replacing 
new: with ofSize: since OrderedCollection new: creates an empty 
collection that is not indexable from within copyWithoutIndex: ...

Examples:

#(a b c) copyWithoutIndex: 2 ==> #(#a #c)
(OrderedCollection with: $a with: $b with: $c) copyWithoutIndex: 2
	==(without fix)==> error: 'attempt to index non-existent element in an
ordered collection'
	==(with fix)==> an OrderedCollection($a $c)"!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CopyWithoutIndexFix.06Dec1418.cs.gz
Type: application/x-gzip
Size: 540 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20011206/9a480464/CopyWithoutIndexFix.06Dec1418.cs.bin


More information about the Squeak-dev mailing list