|
|
6.135 SymLink
- Defined in namespace Smalltalk
- Category: Language-Implementation
- I am used to implement the Smalltalk symbol table. My instances are
links that contain symbols, and the symbol table basically a hash table that
points to chains of my instances.
6.135.1 SymLink class: instance creation
- symbol: aSymbol nextLink: aSymLink
- Answer a new SymLink, which refers to aSymbol and points to aSymLink as the next SymLink in the chain.
6.135.2 SymLink: accessing
- symbol
- Answer the Symbol that the receiver refers to in the symbol table.
- symbol: aSymbol
- Set the Symbol that the receiver refers to in the symbol table.
6.135.3 SymLink: iteration
- do: aBlock
- Evaluate aBlock for each symbol in the list
6.135.4 SymLink: printing
- printOn: aStream
- Print a representation of the receiver on aStream.
|