hi, I just seen that #union: in Collection is implemented as following: ^self copy addAll: aSet. Thus it returns the passed parameter instead of the resulted collection (see #addAll: in collection).
bests, Hani
I just seen that #union: in Collection is implemented as following: ^self copy addAll: aSet. Thus it returns the passed parameter instead of the resulted collection (see #addAll: in collection).
Could be:
^self copy addAll: aSet; yourself
Alexandre
Fixed in version 75.479 of CodeFooDevelopment.
Thanks for reporting, AA
On 17 Dec 2007, at 14:10 , Hani ABDEEN wrote:
hi, I just seen that #union: in Collection is implemented as following: ^self copy addAll: aSet. Thus it returns the passed parameter instead of the resulted collection (see #addAll: in collection).
bests, Hani _______________________________________________ Moose-dev mailing list Moose-dev@iam.unibe.ch https://www.iam.unibe.ch/mailman/listinfo/moose-dev