From: matz@... (Yukihiro Matsumoto) Date: 2002-02-11T04:34:30+09:00 Subject: Re: Class variable madness Hi, In message "Class variable madness" on 02/02/11, Alan Stern writes: |a.rb(main):028:0* A.set(3) |NameError: uninitialized class variable @@v in A | from a.rb:8:in `set' | from a.rb:28 | | # Why didn't that work? Because you didn't prepare @@v in A. No @@v is known for class A. The class variable references are resolved statically as much as possible. The source of your confusion is parhaps this one: |a.rb(main):030:0> B.get |0 This is a bug. This must cause error. I will fix this. matz.