m_tbl 2. follow super pointer and search the m_tbl 3. Repeat 1,2 4. invoke method_missing on original receiver, and go though 1-3 again. Thursday, 3 May, 12
`iv_tbl` instance_variable_get class_variable_get class A @var = :classinst def initialize @var = :inst @@var = :class end def ivar @var end def cvar @@var end end a = A.new a.ivar a.cvar a.var A.instance_variable_get(:@var) a.instance_variable_get(:@var) a.instance_variable_get(:@@var) a.class_variable_get(:@var) a.class_variable_get(:@@var) http://rhg.rubyforge.org/chapter06.html Thursday, 3 May, 12