[Newbies] Best way to implement two-dimensional array
John Almberg
jalmberg at identry.com
Sun Sep 2 12:45:42 UTC 2007
This is a smalltalk question, but hopefully not too off-topic...
I need a lookup table object... something to which I can send a
message like:
anElement := myTable index1: #aSymbol index2: #anotherSymbol
The underlying structure is actually a table... rows and columns...
and I want to be able to fetch elements in the table.
I am thinking myTable should hold a dictionary of dictionaries, (a
hash of hashes, I might say if using another language), but I am
wondering if there is a more smalltalk-ish way to do this?
Any suggestions much appreciated.
-- John
More information about the Beginners
mailing list