From: Garance A Drosehn Date: 2006-10-21T06:03:21+09:00 Subject: Re: metaprogramming surprise? On 10/18/06, gwtmp01@mac.com wrote: > > Class variables seem to trip up everyone learning Ruby, yet > proficient Ruby programmers rarely seem to use them. Are they really > worth the trouble? I've yet to feel the need to use them but maybe > that is just me. > > Any chance that class variables will disappear in Ruby 2.0? I'm only > half joking. I use them fairly frequently, and have never been tripped up by them. They seem like a pretty straightforward idea to me. I tend to use them for "config-ish" things in the class, which would need to have the same value in all instances of the class. -- Garance Alistair Drosehn = drosihn@gmail.com Senior Systems Programmer Rensselaer Polytechnic Institute; Troy, NY; USA