Re: [Vala] Adding support for C++



Adding c++ and objc support would be helpful in some cases to interact with
third-party libraries (say for example xapian) that have no C API.
The difference with maja (a vala to javascript compiler) is that while maja
is only a few lines of code and it's implemented from scratch, it wouldn't
be the same for c++ and objc.
So the idea would be to create an external compiler that takes advantage of
the ccode module of vala and extend it for c++ and objc. The other problem
is that vala ccode only outputs C code (for .vala files using c++ classes
the output should be a .cpp file), but I think that can be extended as well
somehow.

The current status makes it possible to create such external compilers and
even integrate with posix and gobject profile somehow, but it must be taken
in consideration that many parts of vala are not supposed to be extended (at
least not yet).

-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]