From: "Chr. Rippel" Date: 2002-01-01T22:44:29+09:00 Subject: [ruby-talk:29952] Re: Ruby multi-dimensional Hash question?---Any one out there willing to give this questions a try? "Tanaka Akira" wrote > I think it is not solution because the assignment doesn't modify MyHash. class MyHash < Hash def initialize super do __default end end private def __default @__default ||= MyHash.new end end t = MyHash.new t[0][1] = 2 p t[0][1] # => 2 /Christoph Ps. Happy New Year