[Newbies] reimplementing #= and #hash
Ching de la Serna
ching.dls at gmail.com
Sun Sep 23 07:52:47 UTC 2007
I have a Class PoolQueue which has instvars 'member' and 'processor'. I find
that an instance of PoolQueue when placed in an OrderedCollection can no
longer be considered equal. I suppose I have to reimplement #= and #hash to
allow PoolQueue instances to be compared.
My problem: how do I implement #hash? Or stated another way, what does #hash
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners