From: HarryO Date: 2001-11-17T03:31:54+09:00 Subject: [ruby-talk:25575] Re: Constants and Variables In article <20010710.111144.452867621.16755@zipworld.com.au>, "HarryO" wrote: >> max_size = 100.freeze > > I just tried this and it doesn't work!! In fact, even if I do ... > > max_size.freeze > > I can still chane it. What's the story there? Obviously, I'm missing > something about how freeze works. What I find even more bizarre is that even if I make it MAX_SIZE= 100 if I then do MAX_SIZE = 666 all I get is a warning, but it then actually changes the value of MAX, anyway This doesn't sound like it's much of a constant, to me !!