From: Richard Date: 2007-06-14T11:05:03+09:00 Subject: Re: Finding entries in Windows Registry matching a RE > Constants are still Ruby variables, which means that they can store a > reference to any Ruby object. Of course! You've eased my brain-cramp :-) Thanks. > try learning how to use > _why's ingenious Camping I peeked at "Camping, a Microframework". Lot's of interesting stuff. I put it on my TODO list. Thanks. Best wishes -- Richard On Jun 10, 5:34 am, SonOfLilit wrote: > In Ruby, "constant" means that it's value should not change (that's > actually just a syntactical convention - you'll only get a value if > you try A=8; A=9). It also means that it will be stored in a different > table (or at least treated like it was, with different methods to > access it etc' - I'm not familiar enough with the MRI to comment). > > Constants are still Ruby variables, which means that they can store a > reference to any Ruby object. > > E.g.: > > ERROR_STREAM = File.open("log.txt") > > If you're interested in great uses of constants (and class methods > that behave like it was just a constant) try learning how to use > _why's ingenious Camping. It is full of amazing uses for those. It's > an afternoon to learn, especially if you're familiar with Rails. > > Aur