Composite keys in Dictionary

Daniel John Crowe s2007517 at student.rmit.edu.au
Sun Sep 26 02:44:04 PDT 2004



Hi,

I'm just introducing myself to the slate world (0.3) and I've come up against an issue.

I've been trying to add composite keys to a dictionary.
ie:    dict at: (keya , keyb) put: val.

The dictionary uses an identity hash on the tuple, and this prevents me from using a new tuple to read the value from the dictionary.

ie:   dict at: (keya, keyb). "fails"

What is the best way around this?

Thanks, Daniel Crowe.






More information about the Slate mailing list