lua-users home
lua-l archive

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


I went on, still trying to pursue the automatic binding.
I really like the lqt way of doing things.
Now when it has namespaces!! and correct syntax I like it even more.

For me now, it boils down to creating .h files for which lqt can crunch, it will then generate virtual method binding automatically, which tolua++ doesnt...
It also handles include/dependencies between various class declarations...

But your comment about tolua++ and nested classes is valid for lqt too...


It seems that lqt stumbles onto this too.
Nested classes is not working.
Can this be fixed?

/Anders

On Wed, Jan 21, 2009 at 1:29 PM, Tim Niemueller <niemueller@kbsg.rwth-aachen.de> wrote:
Anders Backman schrieb:
>
> Hi all.
>
> This is probably a wildly discussed topic, but I haven't found a good
> compilation of the resources as new ones pops up all over the place, and
> others die..
>
> Problem: Given a C++ API I want to export classes, methods, namespaces,
> enums to lua. Being able to implement virtual methods in lua, calling
> them from C++/lua transparently...

A critical point for us was the ability to have nested classes:

class A
{
 public:
 class B
 {
   public:
     void do_something();
 };

 void useB(B* b);
};

tolua++ does that just fine for us. I know that swig can't do it, but
can others like LuaBind do this?

       Tim

--
Tim Niemueller                      KBSG - Knowledge-Based Systems Group
========================================================================
AllemaniACs RoboCup Team                          RWTH Aachen University
http://robocup.rwth-aachen.de                            Ahornstrasse 55
http://www.kbsg.rwth-aachen.de                            D-52056 Aachen



--
__________________________________________
Anders Backman, CTO  Algoryx Simulation AB
Uminova Science Park, Box 7973,  SE-907 19
Umeå,  Sweden
anders@algoryx.se http://www.algoryx.se
Cell: +46-70-392 64 67