From: ts Date: 2004-12-14T02:31:50+09:00 Subject: Re: Hash freezes String keys are returns copy >>>>> "M" == Michael Neumann writes: M> But why does this work: M> a = [] M> hash[a] = "test" M> a[0] = "1" M> p hash.keys M> # => returns [ ["1"] ] uln% cat b.rb #!/usr/local/bin/ruby a = [] hash = { a => "test"} a[0] = "1" p hash[a] uln% uln% b.rb nil uln% Guy Decoux