[Newbies] Anomaly of disappearing element in Bag?

Randal L. Schwartz merlyn at stonehenge.com
Fri Jul 30 22:02:21 UTC 2010


>>>>> "Vaidotas" == Vaidotas Didžbalis <vaidasd at gmail.com> writes:

Vaidotas> So, one needs to remember and rehash some collections manually after
Vaidotas> mutable object is changed? Brrr. I will forget.

How else would it be?

If its identity-for-equality is based on its contents, how do you expect
the collection to reidentify it?

Note that IdentityDictionary doesn't suffer from this.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion


More information about the Beginners mailing list