Hash/associative array using several objects as key

后端 未结 3 581
北海茫月
北海茫月 2021-01-27 00:59

Is there a way of making an associative array where each key is a hash of several objects? I\'m not interested in inspecting each object\'s state, but rather the object\'s ident

3条回答
  •  天涯浪人
    2021-01-27 01:18

    Actually impossible since Object keys in this language only can be strings and there's no equivalent of java's object identity.

    :o)

提交回复
热议问题