From: Martin DeMello Date: 2007-11-01T02:14:26+09:00 Subject: Re: Array and ASCII Help needed... On 10/30/07, Peņa, Botp wrote: > > i think 7stud meant this, > > ~> h=Hash.new("hi") > => {} > > ~> h > => {} > > ~> h['a']=h['a'] || 10 > => "hi" > > ~> h > => {"a"=>"hi"} > > ~> h['b'] ||= 10 > => "hi" > > ~> h > => {"a"=>"hi"} Oh, good point. I want to call that a bug, but I can't quite put my finger on where the exact problem is - something about [] not returning a proper lvalue, or foo = foo not being a no-op. martin