From: William Djaja Tjokroaminata Date: 2002-10-01T03:57:34+09:00 Subject: Re: Where Is Method Call Precedence? Wow, quite a revelation to me, David! Thanks a lot for pointing the *very importance* of "rehash" when dealing with "mutable" keys. (I guess then there is definitely no "rehash" in Python.) Regards, Bill =========================================================================== dblack@candle.superlink.net wrote: > a = [ "a", "b" ] > c = [ "c", "d" ] > h = { a => 100, c => 300 } > h[a] #=> 100 > a[0] = "z" > h[a] #=> nil > h.rehash #=> {["c", "d"]=>300, ["z", "b"]=>100} > h[a] #=> 100