2016-01-04 14:00:53 |
hilaire |
description |
With need specialized methods to compare considering the block of code as well, otherwise we are limited by the unicity check to one point per parent combination:
DrGPointBlockItem>>pointBlock
^ pointBlock
DrGPointBlockItem>>= aMathItem
^ super aPointBLock = aMathItem and: [ pointBlock = aMathItem ]
DrGPointBlockItem>>rehash
^hash := super rehash bitXor: pointBlock hash |
We need specialized methods to compare Point by block and take in consideration the block of code as well. Otherwise we are limited by the unity check to one point by block per parent:
DrGPointBlockItem>>pointBlock
^ pointBlock
DrGPointBlockItem>>= aMathItem
^ super aPointBLock = aMathItem and: [ pointBlock = aMathItem ]
DrGPointBlockItem>>rehash
^hash := super rehash bitXor: pointBlock hash |
|