From: dohzya Date: 2007-08-08T23:18:52+09:00 Subject: Re: non-constant strings Le mercredi 08 ao�t 2007 � 23:04 +0900, Robert Klemme a �crit : > 2007/8/8, Kaldrenon : > Just to make it clear: this is not unfreezing - it will just create a > new instance that is not frozen so the original is still safe. see by your eyes : >> s = "test" => "test" >> a = s => "test" >> a.freeze => "test" >> a << "test" TypeError: can't modify frozen string from (irb):4:in `<<' from (irb):4 >> a = a.dup => "test" >> a << "test" => "testtest" >> s => "test" s is frozen and not changed -- Etienne Vallette d'Osia