lua-users home
lua-l archive

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


On Tue, Feb 22, 2011 at 2:32 PM, Jeff Smith <spammealot1@live.co.uk> wrote:
> However for a newbie that isnt familiar with the C API and hasnt got much
> time to create some bindings I would say the sensible and proper way to get
> a quick bug free solution is to use something such as Swig.

Assuming swig is easier to use than lua's C api.

My experience with swig is that that isn't true, and that you end up
having to know both the C API of the language you are binding to and a
fair bit of swig internals.

I have the impression swig works better when binding C++ to an object
oriented language,
because you don't have to teach swig the conventions of the library,
but I haven't used
c++ for a long, long time. And it was 6 years ago I tried to use swig,
it might be better.

Cheers,
Sam