From: Christoph Date: 2003-12-05T09:17:46+09:00 Subject: Re: Attempted roadmap of future instance variables.... ts wrote: ... > Well, my example can be re-written like this > > class A > def self.set > @m = 'A::m' > @_m = 'A::_m' > end > > def self.get > p @m, @_m > end > end > > class B < A > def self.set > @m = 'B::m' > @_m = 'B::_m' > end > > def self.get > p @m, @_m > super > end > end > > B.set > B.get > > This is because A::set was never called in B::set that I > expect that @_m give nil when super is called The more general question is if the "class localness" should be extended to singleton class sub-classing (in your example the meta class of A and B respectively) or if should be restricted to "regular" sub-classing. /Christoph