[Newbies] reimplementing #= and #hash

Ching de la Serna ching.dls at gmail.com
Sun Sep 23 07:52:47 UTC 2007

Hi List,

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...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20070923/94aedce1/attachment.htm

More information about the Beginners mailing list