From: ts Date: 2002-01-01T22:47:35+09:00 Subject: [ruby-talk:29953] Re: Ruby multi-dimensional Hash question?---Any one out there willing to give this questions a try? >>>>> "C" == Chr Rippel writes: C> class MyHash < Hash C> def initialize C> super do __default end C> end C> private C> def __default C> @__default ||= MyHash.new C> end C> end C> t = MyHash.new C> t[0][1] = 2 C> p t[0][1] # => 2 t[1][0] = 4 p t[0] p t[1] Guy Decoux C> Ps. Happy New Year same