From: Bill Kelly Date: 2002-03-29T01:48:21+09:00 Subject: Re: Hash.new(Hash.new) doesn't use Hash.new as default value From: "Christoph" > > I thought that the ``hash'' argument was pretty much superfluous - guess > I was wrong. Here is a working n-dimensional solution cvs-solution > which is strictly relying on the apparent useless hash parameter > > ---- > default = nil > default = proc do |hash, key| hash[key] = Hash.new default end > > var = Hash.new (&default) > ---- See also [ruby-talk:29378] :)