From: Simon Strandgaard <0bz63fz3m1qt3001@...> Date: 2003-04-15T10:41:19+09:00 Subject: Re: inheirit from a swig-class On Mon, 14 Apr 2003 18:57:47 +0000, Steve Hart wrote: > > I assumed this was prob with tutorial code. Had a look and got same > error. Found if I change the call in NewWrap from: > > VALUE self = rb_class_new_instance(a.n, a.argv, klass); > > to: > > VALUE self = rb_funcall2(klass, rb_intern("new"), a.n, a.argv); > > it all works. I started looking thru the ruby code but then my brain > started to hurt. Would be intersted to know why? This modification makes it work like a dream, thanks :-) This makes me wonder what the difference might be ??? Sorry, can someone explain this for us? -- Simon Strandgaard