From: jmichel@... (Jean Michel) Date: 2001-01-04T05:40:01+09:00 Subject: [ruby-talk:8592] Re: bug?? In article <200101031934.EAA27072@hanare00.math.sci.hokudai.ac.jp>, GOTO Kentaro wrote: ... >A number of users was confused by these behavior, thus we have already >proposed an alternative constructor [ruby-list:26622] like this: > > a = Hash.new { |hash_self, unknown_key| > hash_self[unknown_key] = "" > } > > a[1] << "a" > p a # {1 => "a"} > >I believe this feature will be adopted in the near future ;-) > Thank you very much! I answered Hugh before seeing your answer, but this addresses all my complaints. It would be wonderful if you also add a similar alternative constructor for Array. Best regards, Jean MICHEL