From: Martin Man Date: 2002-06-07T16:34:34+09:00 Subject: subclassing SWIG generated c++ class --wac7ysb48OaltWcw Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi all, I've created simle c++ class --- class.cxx --- #if SWIG %module myext #endif class Foo { Foo () {}; hello_world () {}; }; and then generated ruby extension module 'Myext' using SWIG for it...=20 no problem so far, I'm able to require the extension,=20 create instances of Foo, invoke methods, etc. but when I try to subclass such class in ruby, the original class gets always created, am I missing something, e.g. --- test.rb --- require './myext.so' module Myext class Bar < Foo end end k =3D Myext::Foo.new puts k k1 =3D Myext::Bar.new puts k1 both .new statements create instance of Myext::Foo... ruby 1.6.7 (2002-03-19) [i386-linux] swig 1.3.11 I'm now trying the cvs versions of SWIG and ruby, but if anyone knows what's happening... greets, martin --=20 Dennis: Help! Help! I'm being repressed! Come see the violence inherent in the system! Violence inherent in the system! -- Monty Python and the Holy Grail --wac7ysb48OaltWcw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9AGHNYgJwJG4GAiMRAtM5AKCNl293EQF6+ottZEiE8ae7ZmAPxACbBI3/ dCCwpcmpECZ3KBzNru6ZoSQ= =rlKg -----END PGP SIGNATURE----- --wac7ysb48OaltWcw--