lua-users home
lua-l archive

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


On Thu, Feb 14, 2008 at 11:34 AM, dcharno <dcharno@comcast.net> wrote:
> > Enjoy the GPL-free Alien 0.3.1!
>
>  Is it possible to call C++ classes?
>

No. For C++ you are much better using a source level tool such as
tolua, or writing a thin C wrapper around the C++ library and calling
*that* with Alien. For popular C++ libraries check if someone has
already written this C wrapper for you, a lot of people won't touch
C++ with a ten feet pole.

On Thu, Feb 14, 2008 at 10:35 AM, Javier Guerra Giraldez
<javier@guerrag.com> wrote:
>  and that's where alien could really shine!  by allowing that layer to be
>  written in Lua instead of C.
>
>  wouldn't that be great? imagine if new bindings could be distributed just as a
>  few Lua scripts starting with require("alien")
>

Plus you can bind to C libraries without tying your code to the Lua C
API. Port Alien to use JNI and Kahlua scripts can use extensions
written with Alien with no changes. It is portability across Lua
implementations. :-)

--
Fabio Mascarenhas