On Monday, August 18, 2003, at 03:44 PM, Paul Brannan wrote:

> On Tue, Aug 19, 2003 at 04:06:24AM +0900, Dave Thomas wrote:
>> Ruby gets around this by dup-ing strings used as Hash keys, so the
>> problem doesn't crop up.
>
> dup-ing and freezing.  It would still be possible to modify the Hash 
> key
> if the key were not frozen.
>
> Paul

I think the point is that you would have to expressly access the Hash 
key to modify it -- modifications to the original string, if it's kept 
in existence, won't affect the Hash key.

Regards,

Mark