lua-users home
lua-l archive

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

	Hi Andreas

> If I don't "lua_remove(L, 2);" then the new table is after the input table. But is there any way to access this new table in LUA?
	You have to return it to the caller.  Something like:

array2table( L, lobj );
lua_remove(L, 2);

printf ("dump2:\n");
stackDump (L);
return 1;

	And in your Lua code:

a = tc:testX (a)

	Now the variable `a' has a new value!