lua-users home
lua-l archive

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


Hi, im choosing the addon to use Lua with C++, i found these in the addons
page: Tolua,Not-tolua,Luna,Script (there is another?). I want to do a table
with the features of each one, to help me choose.
Can you help me to fill it? :) (with yes, no, n/a, and 10%,20%, etc)

See this table in a fixed width font:

----------------------------------------------------------------------------.
                                            |Tolua|Not-tolua| Luna | Script |
--- Using C++ from Lua --------             |     |         |      |        |
* Call C++ functions from Lua               |     |         |      |        |
* Change C++ object variables from Lua      |     |         |      |        |
* Call C++ object methods from Lua          |     |         |      |        |
* Call C++ object methods and C++ functions |     |         |      |        |
    with a Lua obj as parameter.            |     |         |      |        |
* Having a C++ object in Lua, pass it as a  |     |         |      |        |
    parameter to a C++ function.            |     |         |      |        |
                                            |     |         |      |        |
---- Using Lua from C++ -----               |     |         |      |        |
* Call a Lua function from C++ passing a    |     |         |      |        |
    C++ object as argument.                 |     |         |      |        |
* Call a Lua function from C++ passing a    |     |         |      |        |
    method/functor (or some), as argument.  |     |         |      |        |
                                            |     |         |      |        |
----- Advanced (nice to have) --------      |     |         |      |        |
* Instantiate C++ objects from Lua          |     |         |      |        |
* Define a new class in Lua derivated from  |     |         |      |        |
  a C++ one (with virtual functions).       |     |         |      |        |
* Access Lua object data from C++           |     |         |      |        |
                                            |     |         |      |        |
----- Others -------------------------      |     |         |      |        |
* Is the process of expose classes          |     |         |      |        |
   semi-automatic?                          |     |         |      |        |
* Ease of use                               |     |         |      |        |
* Runtime overhead                          |     |         |      |        |
* Support / there is a "future" for the     |     |         |      |        |
   addon? / ongoing development             |     |         |      |        |
* Lua 3.2 Compatible                        |     |         |      |        |
* Lua 4.0 Compatible                        |     |         |      |        |
* Documentation.                            |     |         |      |        |
----------------------------------------------------------------------------'

What are your advices?
 
Btw, this comparision will help if is linked in the lua page.
 
_------------------------------------------------------------.
| Nahuel Greco                 Web Development - Open Source |
| http://www.codelarvs.com.ar  Game Programming - Research   |
| Freelance coding / sysadmin  Networking. The answer is 42. |
'------------------------------------------------------------'