From: Robert Dober Date: 2008-06-10T21:01:40+09:00 Subject: Re: accessing class variables from the outside (beginner question) On Tue, Jun 10, 2008 at 9:16 AM, Ryan Davis wrote: > > On Jun 9, 2008, at 22:15 , David A. Black wrote: > >> Class variables [...] in most cases aren't what you want to use anyway. > > While probably true in this case, I think this statement is dangerously > loaded... Your words have sway and affect design decisions. Sometimes class > variables are exactly the right tool for the job: > > % find */dev/{lib,test} -name \*.rb | xargs grep -l @@ | wc -l > 50 May I suggest to trust David more than grep ;). I do not know of any usecase where class variables are the *right* thing to use, but I am eager to learn, so please enlighten me. Cheers Robert > > > -- http://ruby-smalltalk.blogspot.com/ --- As simple as possible, but not simpler. Albert Einstein