From: ts Date: 2004-01-11T00:33:17+09:00 Subject: Re: Question on hashes and init block >>>>> "L" == Luke A Kanies writes: L> a = Hash.new { |key,value| ^^^^^^^^^ This is wrong, it's a = Hash.new {|hash, key| } svg% ruby -e 'a = Hash.new {|h,k| raise "#{h.inspect} -- #{k}"}; a[1] = 2; a[2]' -e:1: {1=>2} -- 2 (RuntimeError) from -e:1:in `call' from -e:1:in `default' from -e:1:in `[]' from -e:1 svg% Guy Decoux