>>>>> "C" == Chr Rippel <chr_news / gmx.net> 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