From: Tobias Reif Date: 2001-08-12T06:48:03+09:00 Subject: [ruby-talk:19549] @@variable scope Hi; Below is my current understanding of how families of classes share variables. I'm sure I got some things completely wrong, and would like to get these spots pointed out. Class variables beginning with @@ are shared and scoped among whole families of classes: parent classes with descendant classes. If a cousin assigns a new value to a class variable, the value changes for it's cousin, ancestor, and descendant classes. If all objects are of class Object, then all classes are descendant classes of class Object, and all objects of all classes share the farthest/oldest ancestor class Object. Thus all classes are in the same family and thus @@ variables would be shared among all objects. Where am I erring? Tobi -- Tobias Reif http://www.pinkjuice.com/myDigitalProfile.xhtml go_to('www.ruby-lang.org').get(ruby).play.create.have_fun