2006/8/7, stéphane ducasse <[EMAIL PROTECTED]>:
Hi florent

Read K. Beck idiom on redefining = normally you MUST also redefine hash

the pattern Kent suggested was


Book>>= anBook
        (self author = anBook author ) and: [self name = anBook name]     (a)

Book>>hash
        self author hash bitXor: self  name hash     (b)

I'm aware of that... but I just don't understand what's: 'hash bitXor:'

why (a) is not sufficient ?

hash tables doesn't talk to me too much ;). 
What I imagine is that bitXOr gives a logical (byte) representation ?  and these are used in a table (hash) to access objects (pointers)?

Cédrick


_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to