This post originated from an RSS feed registered with Ruby Buzz
by Lyle Johnson.
Original Post: Constant != Frozen
Feed Title: Lovable Lyle
Feed URL: http://feeds.feedburner.com/LovableLyle
Feed Description: This weblog typically features articles about the Ruby programming language, the Semantic Web, or whatever else is on Lyle's mind on a given day.
I almost always learn something new when hanging out in the #ruby-lang IRC channel at freenode. Or at least I'm reminded of something that I used to know but have since forgotten.
There was some discussion today of how constants work in Ruby and I realized that I didn't quite understand the difference between a constant and a "frozen" object. In Ruby, a constant is variable whose name begins with