From: Abhijit Gadgil Date: 2007-04-24T12:48:32+09:00 Subject: Re: string freeze test references two different objects.. try this.... test = "good"test.freezetest.object_id test = "bad"test.object_id You will notice different object_id's in the first and later case. -abhijit On 4/24/07, Harry wrote:> On 4/24/07, Stephen Smith <4fires@gmail.com> wrote:> > Hey all,> >> > So I'm trying to freeze a class variable, and I discover that Object#freeze> > breaks down every time on my machine. Even with simple strings.> >> >> > fiery> >>> Try altering it instead of reassigning it.> I think this is a little more like what you expected.> Not exactly, but you can see freezing.>>> test = "good"> p test> test.freeze> p test> p test.frozen?>> test << "bad"> p test> p test.frozen?>> Harry>> --> http://www.kakueki.com/ruby/list.html> A Look into Japanese Ruby List in English>> -- अभिजीत [written in http://www.paahijen.com/scratchpad] [http://www.paahijen.com]