From: Hugh Sasse Staff Elec Eng Date: 2002-01-16T19:00:12+09:00 Subject: Re: Swig Ruby documentation mods. On Wed, 16 Jan 2002, Alan Chen wrote: > On Tue, Jan 15, 2002 at 09:18:18PM +0900, Hugh Sasse Staff Elec Eng wrote: > > I have been trying to use Swig Ruby recently, and in attempting to > > understand it I have made some mods to the documentation, because others > > will also want to use it. I have put the modifications at > > http://www.eng.cse.dmu.ac.uk/~hgs/ruby/Swig/index.html > > Can anyone else using Swig with Ruby tell me if this is about right? > > I have basically taken the stuff from the examples directory and aslo > > knowledge from reading README.EXT, and put them together... > > Hugh > > Have you thought about sending to the swig project? Of course. No feedback so far from swig-dev on this. But I need feedback from the Ruby side of this, as clearly there are few Rubyists on the Swig-dev list. Also I have found a few more "niggles": * if you don't use -module in the swig -ruby command then swig complains. This is probably always correct, but needs mentioning. * It is not clear what should be done about integrating several C functions into the same module. Does this depend on one writing a .i file to connect them together? How? * Can you make swig roll the C functions into methods of a class, or must one do this via including a module. * Can extconf.rb be made to make other preliminary stuff, that is not part of the external interface of the class? Eg, can one make it run swig if necessary? > > -- > Alan Chen > Digikata LLC > http://digikata.com > Hugh