Set an mutable objects
Damien Cassou
damien.cassou at laposte.net
Tue Aug 15 15:04:18 UTC 2006
Hi,
I redefined #= and #hash in one of my classes. Objects from this class
are mutable and the hash value change when this objects change. It seems
wrong to store mutable objects like this in a set but I can't find any
documentation about this anywhere. Because when you add such an object
into one Set and change the object, then the set won't find your object
using #includes: anymore.
What is allowed and what is not please ?
Thank you
More information about the Squeak-dev
mailing list
|