Sean O'Halpin wrote:
> On Thu, Dec 11, 2008 at 3:21 PM, Charles Oliver Nutter
> <charles.nutter / sun.com> wrote:
>> Jason Roelofs wrote:
>>> Because of the complexity that C++ adds, I doubt that any feasible FFI
>>> library can be made that works reliably against C++ libraries, though
>>> Charles will probably be a better voice for whether this is truely
>>> possible or not.
>> Wayne and I talked about this a bit, and largely the problem is the
>> name-mangling involved. So there would always need to be a compile phase for
>> the C++ stuff to be callable from an FFI-based library.
> 
> The compile step may not be necessary. I'm looking at using gccxml to
> generate function signatures. It provides the mangled names in the
> output (and emulates a number of compilers including MSVC versions 6
> to 8). I'll report back as I find out more.

That would be interesting...if it works, FFI could potentially bind an 
entire C++ class too.

- Charlie