From: Joey Zhou Date: 2011-03-09T20:59:44+09:00 Subject: Re: Unexpected problem: hash<< value Haruka YAGNI wrote in post #986377: > On Wed, Mar 9, 2011 at 12:45 PM, Joey Zhou wrote: > Hash.default refers to the same Array at each element. > You cannot use the first code, because "<<" changes the default array, > not each element. > > Here is a good example from the manual, but it is Japanese... sorry > http://www.ruby-lang.org/ja/man/html/trap_Hash.html Thank you. I can read the codes :) -- Posted via http://www.ruby-forum.com/.