From: Sean O'Dell Date: 2004-06-08T23:51:41+09:00 Subject: Re: Interfaces and semantics (or, how to hashpipe a duck) On Tuesday 08 June 2004 07:37, nobu.nokada@softhome.net wrote: > Hi, > > At Tue, 8 Jun 2004 23:32:28 +0900, > > Sean O'Dell wrote in [ruby-talk:102779]: > > I have the docs. What's wrong is, in an instance method, I can't seem to > > access the class variable from the C API. In Ruby, instance methods can > > see the instance variables just fine, so I know that part of my code is > > working with them right. > > VALUE cvar = rb_cvar_get(CLASS_OF(obj), rb_intern("@@cvar")); Oh! I see what you mean now; I overlooked the CLASS_OF part. Thanks, I'll try that. Sean O'Dell