From: Dave Thomas Date: 2001-07-10T10:46:12+09:00 Subject: [ruby-talk:17576] Re: Constants and Variables "HarryO" writes: > > If you want objects that don't change, try Object#freeze, > > Object#frozen?. > > Here's a thought ... why not just say that freeze is the only way things > are made immutable? Then, could we not have code like ... > > MAX_SIZE = 100.freeze > > to define that MAX_SIZE is a constant? Because that freezes the object that MAX_SIZE references, not MAX_SIZE itself. Dave