From: Yuri Albuquerque Date: 2009-12-21T06:04:25+09:00 Subject: Re: C++ pointers to Ruby objects Roger Pack wrote: > theoretically you should be able to store a struct in a ruby object that > can contain pointers to anything. > > http://github.com/rdp/google_hash > > is an example project that has pointers to a C++ object [a google hash > map]. > > The trick is wrapping all your ruby code in an extern "C" { } block. > > GL. > -r Thanks to your tip, I am very closer to what I want to do than ever. I didn't needed to make any gluecode between C and C++, I'm writing directly gluecode between Ruby and C++. Thank you very much. -- Posted via http://www.ruby-forum.com/.