From: Austin Ziegler Date: 2006-05-06T02:09:48+09:00 Subject: Re: Constant in Ruby. On 5/5/06, Charlie wrote:> Okay, just one more go ...>> A = "Foo" => "Foo"> A.object_id => 29971016> B = A => "Foo"> B.object_id => 29971016> A.freeze => "Foo"> B << "Bar"> TypeError: can't modify frozen string> from (irb):7:in `<<'> from (irb):7> from :0 Do you understand *why* that worked? Consider it from: A = "Foo" B = A B.freeze A << "Bar" -austin--Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca