Aldric Giacomoni wrote: > > Upon inspection of 'a', it sure seems that it's empty, but upon > inspection of the key, it does have a value attached to it! Can we trust > this? Expected / unexpected behavior ? # Reminder : a = Hash.new(Hash.new) irb(main):097:0> a[6] ||= {4 => 4} => {4=>3} irb(main):098:0> a[6] => {4=>3} irb(main):099:0> a => {} irb(main):100:0> a[6] => {4=>3} irb(main):101:0> a[5] => {4=>3} Just for kicks. -- Posted via http://www.ruby-forum.com/.