From: Nobuyoshi Nakada Date: 2007-12-14T15:50:42+09:00 Subject: instance variable of class instance (Re: C extension: can rb_ivar_set be used to set class variable?) Hi, At Fri, 14 Dec 2007 15:15:02 +0900, lianliming wrote in [ruby-talk:283498]: > Will the instance variable "@foo"'s value declared as the above > example can be referenced in an object of Class Foo? No, two different objects's instance variables. Now your question is not related to C extension. I guess others could explain it much better than me. -- Nobu Nakada