From: Stefan Schmiedl Date: 2001-11-17T06:06:48+09:00 Subject: [ruby-talk:25669] Re: Constants and Variables HarryO (2001-11-17 03:35): > > 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. it seems like you are preventing the Fixnum instance 100 from changing. if you want to prevent binding max_size to another object, you might want to try a constant MAX_SIZE instead. s. -- Stefan Schmiedl EDV-Beratung, Programmierung, Schulung Loreleystr. 5, 94315 Straubing, Germany Tel. (0 94 21) 74 01 06 Public Key: http://xss.de/stefan.public shhhh ... I can't hear my code!