From: Dmitry Bilunov Date: 2007-08-08T20:56:57+09:00 Subject: Re: non-constant strings Jano Svitok wrote: > On 8/8/07, Dmitry Bilunov wrote: >> It will make impossible changing @command inside instance methods (which >> can be guaranteed to be safe). If there is a way to unfreeze a frozen >> object, then this method could be called externally and one can gain >> write access to an internal instance variable. > > Not exactly. > [cut] > > In fact, Hash#[]= dups and freezes String keys, just for the same > reason. > > Jano Thanks, now it makes sense for me. -- Posted via http://www.ruby-forum.com/.