From: ts Date: 2002-08-16T23:14:34+09:00 Subject: Re: Thought question: Where does "new" come from? >>>>> "M" == MikkelFJ writes: M> Actually I get "12" and no error using 1.6.6 on Windows. This is because 1.6.6 use another rule :-) With 1.6.6, ruby use the current class : if this class is a singleton class then it retrieve the class associated with it and define the class variable in this class M> In the following the ruby interpreter yields a parse error in class B at the M> line @@a = "hello" in class B. This is because you have a bug in your code :-) M> puts "--- A ---" M> class A M> class << self M> @@a = 12 M> end M> p @@a M> end M> puts "--- B --- ^ | Missing " here Guy Decoux