Squeak Class Documentation category index | class index  
 
LiteralDictionary
  category: System-Compiler
  superclass: Dictionary
  subclasses:

A LiteralDictionary, like an IdentityDictionary, has a special test for equality. In this case it is simple equality between objects of like class. This allows equal Float or String literals to be shared without the possibility of erroneously sharing, say, 1 and 1.0

instance methods
  as yet unclassified
  arrayEquality:and:
literalEquality:and:
scanFor:

class methods
  no messages
 

instance methods
  as yet unclassified top  
 

arrayEquality:and:


 

literalEquality:and:


 

scanFor:

Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject. Answer the index of that slot or zero if no slot is found. This method will be overridden in various subclasses that have different interpretations for matching elements.


class methods
  no messages top