Hi,

In message "Class variable and singleton problem"
    on 03/11/10, "mark.wassell" <mark.wassell / telstra.com> writes:

|I am wondering if the following is a bug or a feature (with ruby 1.8.0). The following fails:
|
|	class A
|		@@x=:a
|	end
|
|	def (o=A.new).meth
|		@@x
|	end
|
|p o.meth # uninitialized class variable @@x in Object (NameError)

Class variables belongs to surrounding class (or module), so that @@x
in meth does not belong to class A, but class Object.

							matz.