lua-users home
lua-l archive

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


Hello,

I searched the internet for a very long time but found no solution to my problem, although it might be quite easy to solve. What I'm trying to do
is to send a dynamic array or a vector to lua.
My function has this body:
 char** CClass::GetArray();
or
 std::vector<char*> CClass::GetArray();
I want to use it in Lua like this:
 myArray = myClass:GetArray()
 print(myArray[1])
Is there a way to get it working somehow using tolua++? It has to be as generic as possible, I want to use tolua++ and a package file.

Thanks in advance,
Norman