[FIX] removeAll-raok

ok at cs.otago.ac.nz ok at cs.otago.ac.nz
Thu Aug 15 23:40:35 UTC 2002


from preamble:

"Change Set:		removeAll-raok
Date:			16 August 2002
Author:			Dr Richard A. O'Keefe

Bergel Alexandre discovered that
	t := #(1 2 3 4) asOrderedCollection.
	t removeAll: t.
	t
=> an OrderedCollection(2 4)
which is wrong for the result and wrong for
the collection of things removed.  This is the
simplest change I can think of to make this
case work without slowing other cases down
too much.  If the receiver and the collection
removed are the same object, a COPY of the
collection is used and returned as the result."!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: removeAll-raok.cs.gz
Type: application/octet-stream
Size: 591 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020816/2604ae77/removeAll-raok.cs.obj


More information about the Squeak-dev mailing list