From: ts Date: 2001-09-03T23:05:57+09:00 Subject: [ruby-talk:20777] Re: Dynamic generation of class variables? >>>>> "R" == Renald Buter writes: R> One thing though: I thought class variables are supposed to be denoted R> prefixed by '@@' -- or is that just syntactic sugar? No, no You must distinguish "class variables" and "class instance variables" class variable (@@var) : the local class and all its subclasses refer to that one variable, class variable is a shared variable Class variables allow common sharing of information across a range of subclasses. class instance variable (@var) : class instance variable is private to the class, like instance variable is private to an object. Guy Decoux