[fpc-pascal] libQT4Pas - Why it is needed?

zeljko zeljko at holobit.net
Thu Feb 2 07:33:14 CET 2012


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20120202/ffb0a6d9/attachment.html>


More information about the fpc-pascal mailing list