From: Navindra Umanee Date: 2005-03-31T08:22:26+09:00 Subject: Re: Defining a Class Accessor Florian Gross wrote: > I thought the original post would answer that well enough already, but Well, someone clarified what the problem was... he was assigning to the class variables for Module instead of for the class itself. I guess "self" is what is confusing. > in my own Ruby experience I have so far being surprised when using them. > Why should they be used when you can use far simpler constructs with > clearer rules? Well, the idea is to have shared storage for all objects of a particular class, right? Class variables fit exactly that requirement. I'm not sure which simpler constructs you're referring to in this context... but perhaps I'm still too much in the Java mindset. Cheers, Navin.