On Wednesday 01 of February 2012 21:02:38 Vladimir Zhirov wrote: > > Do other languages like python use the plain c interface, or > > C++? > > how about something like ruby, lua, objective C, php .. > > AFAIK, Lua uses automatically generated plain C binding. > When I looked at it, the binding generator consisted of > the following parts: > 1) A C++-based program to parse C++ source and extract > required information as XML; > 2) A Lua program to build plain C binding based on this XML > 3) A CMake scripts to manage building of the above parts > and generated binding itself.
Wow, that's "something" ! :) Few years ago in age of Kylix 3 Andreas Hausladen builded C bindings for Qt3 via doxygen which created xml files and then small app builded bindings from that xml files - even virtual methods overriding was supported. So if someone have enough doxygen knowledge it is possible to create automatic C bindings with some efforts. zeljko
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal