Advertisement
Guest User

Untitled

a guest
May 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. equalsButDifferent: anEntry
  2.     "test the equality between two DIFFERENT entries"
  3.    
  4.     ( self == anEntry) ifTrue: [ ^false ].
  5.    
  6.     ((key = anEntry key) and: [ (type = anEntry type) ]) ifFalse: [ ^false ].
  7.  
  8.     (self size = anEntry size) ifFalse: [ ^false ].
  9.  
  10.     fields do:
  11.         [:each | ((anEntry at: each key) rawValue = each rawValue)
  12.             ifFalse:
  13.                 [ ^false ]].
  14.    
  15.     ^true.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement