From: matz@... (Yukihiro Matsumoto) Date: 2002-01-01T18:36:34+09:00 Subject: [ruby-talk:29941] Re: Ruby multi-dimensional Hash question?---Any one out there willing to give this questions a try? Hi, In message "[ruby-talk:29937] Re: Ruby multi-dimensional Hash question?---Any one out there willing to give this questions a try?" on 02/01/01, Tanaka Akira writes: |> You've got [ruby-talk:29787]. Alternative solution is fetch Ruby |> 1.7.2 and do |> |> MyHash = Hash.new{Hash.new} |I think it is not solution because the assignment doesn't modify MyHash. Hmm, things are not that easy, sigh. How about MyHash = Hash.new def MyHash.default(key) self[key] = Hash.new end using 1.7.2 MyHash[0][1] = 2 p MyHash[0][1] # => 2 matz.