From: "Schüle Daniel" Date: 2006-07-31T07:50:10+09:00 Subject: Re: what is the scope of this object Hello, [...] > It's a local variable that goes out of scope when the class body is > closed. The fact that you can access it via ObjectSpace does not proove > much. The instance is likely not yet garbage collected when you start > ObjectSpace.each_object. ok, I understand. They are used in the same way as any local variable. right now I don't see any possible not trivial purposes it could be useful for me. Maybe something like class Q f=File.read("data") eval f end By the way, what if I create class Q @x=1 end to whom does @x belong now? Does it make sense? (Usually one wants to create with @@ class variables at this scope) Regards, Daniel