Closed Exmirai closed 8 years ago
What do you mean? I think it's fine as is.
something like
LuaRef s = getGlobal(L, "testString");
LuaRef n = getGlobal(L, "number");
std::string luaString = s.cast<std::string>();
int answer = n.cast<int>();
std::cout << luaString << std::endl;
std::cout << "And here's our number:" << answer << std::endl;
Don't need it templated. Probably best to keep it as is. Could add more helper functions, but I don't know what really needs it.
Luabind would be nice
Not sure. Existing implementation works, LuaBind seems more related to binding data between C++ classes and Lua.
I think it's best to keep it as is, and provide more helper functions as needed.
Can it be useful?