Subject: [ruby-ffi] Re: c++ examples |
From: rogerdpack |
Date: 12/5/09 4:16 PM |
To: ruby-ffi |
You may be interested in ffi-inliner[1][2]. With this library you can link - on the fly - to C++ through a C layer.
Interesting jruby compatible solution. In the end I think I'm going to end up having to write ruby containers for c++ objects, so I'll probably end up having to write a "real" extension after all. Anybody know of a cross-VM compatible way to wrap C objects and call their destructors, etc.? Thanks. -r