From: Luigi Ballabio Date: 2001-07-11T17:19:01+09:00 Subject: [ruby-talk:17642] Re: SWIG and strings At 07:15 AM 7/11/01 +0900, Craig Files wrote: >Any ideas for writing the typemap for strings in ruby or is >there any reference material for swig and ruby on typemaps? %typemap(ruby,out) string, const string & { $target = rb_str_new2($source->c_str()); }; There's a chapter in 'Programming Ruby' where you can have a look at the Ruby/C API. Bye, Luigi