Dictionary 具有复合类型键的Oz字典

Dictionary 具有复合类型键的Oz字典,dictionary,oz,mozart,Dictionary,Oz,Mozart,CTM手册说,“字典是从简单常量(原子、名称或整数)到部分值的映射。” 正如所料,当我们执行此代码时: declare Memo = {NewDictionary} try {Dictionary.put Memo 3 1} catch E then skip end try {Dictionary.put Memo 5.5 2} catch E then skip end try {Dictionary.put Memo foo 3} catch E then

CTM手册说,“字典是从简单常量(原子、名称或整数)到部分值的映射。”

正如所料,当我们执行此代码时:

declare
Memo = {NewDictionary}
try {Dictionary.put Memo 3        1} catch E then skip end
try {Dictionary.put Memo 5.5      2} catch E then skip end
try {Dictionary.put Memo foo      3} catch E then skip end
try {Dictionary.put Memo foo(bar) 4} catch E then skip end
try {Dictionary.put Memo baz#qux  5} catch E then skip end
{Browse {Dictionary.entries Memo}}
我们得到了
[3#1 foo#3]

使用其他类型作为键有什么常见的解决方法吗?目前,我需要将一些数据存储在稀疏矩阵中,为此,字典应该已经足够好了。但如果有一个通用的解决方案就好了