From: Nobuyoshi Nakada Date: 2009-08-27T20:14:16+09:00 Subject: [ruby-core:25166] Re: [Bug #2004] Setting Hash default to an array hides the hash keys Hi, At Thu, 27 Aug 2009 13:59:17 +0900, Alan Stebbens wrote in [ruby-core:25162]: > It is _expected_ that having a default value of an array > should cause h.keys and h.values to be empty, even when there > are keys and values? You don't assign any key at all. The default value is not automatically assigned. You may want to use default_proc instead. -- Nobu Nakada