RE: Implicit casting issues when binding to C++

  • From: "Janis Britals" <jbritals@xxxxxxxxx>
  • To: <luajit@xxxxxxxxxxxxx>
  • Date: Mon, 9 Jul 2012 14:17:18 +0200

Chris wrote:

> Have you posted your source for the Qt binding?  I'm 
> interested in seeing how it's done so I can make one for FLTK.

No, for 3 reasons: 

1) My work is done for a commercial company and we don't have a policy of
making our source "open" (yet). That said, the Qt bindings are not exactly
our core business, and I'm entertaining an idea of bringing them to the
community, if there's enough interest. It could even possibly help us to
maintain them. But I don't expect a decision on that anytime soon. 

2) It's not in a state that would be easy to publish (i.e. there are no
installers and make scripts, only a percentage, albeit substantial, of
classes are covered, it's done against Qt 4.8.1, although it would probably
work with older versions, and currently it works for msvc2005 compiler
symbol mangling scheme, although it is not hard to extend it for other
compilers like gcc). 

3) It requires a hacked version of LuaJIT FFI that enables the implicit
conversions (the topic of this thread).

That said, I'm more than happy to swap ideas, so if you have concrete
questions or suggestions, we can discuss them here.

--Janis


Other related posts: