From: "Bennett, Patrick" Date: 2002-08-27T06:45:04+09:00 Subject: Question about Ruby extension API This is a multi-part message in MIME format. ------_=_NextPart_001_01C24D49.CEB37BE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've looked all over but can't find the function call for doing a simple = assignment (!) =20 Within a method (set via rb_define_method and later called by the user), = I would like to do the equivalent of: obj =3D otherobj.method I tried calling rb_intern on "=3D", and using rb_funcall( obj, = (IdFromRBIntern), 1, (value from call of other method) ) but I get an = 'undefined method' error from ruby at runtime. =20 =20 Thanks, Patrick Bennett ------_=_NextPart_001_01C24D49.CEB37BE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I've = looked all over=20 but can't find the function call for doing a simple assignment=20 (!)
 
Within = a method (set=20 via rb_define_method and later called by the user), I would like to do = the=20 equivalent of:
   obj =3D=20 otherobj.method
I = tried calling=20 rb_intern on "=3D", and using rb_funcall( obj, (IdFromRBIntern), 1, = (value from=20 call of other method) ) but I get an 'undefined method' error from ruby = at=20 runtime.
 
 
Thanks,
Patrick=20 Bennett
------_=_NextPart_001_01C24D49.CEB37BE0--