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



_______________________________________________
Beginners mailing list
[email protected]
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to