What does LUA acronym stand for?

The programming language is named Lua, it is officially not a acronym. Lua is a common word meaning Moon in Portuguese. The language is named like this because a previous programming language at PUC (in early development phase) was already named SOL for Simple Object Language. And since SOL means Sun in Portuguese, its successor … Read more

Iterating through a Lua table from C++?

When you call lua_next, the second argument should be the index of the table. Since you’re just pushing the table onto the stack with lua_getglobal(L, “level”); after that call your stack will look like -1: table “level” (not +1, since the stack is read going down). Then you call lua_pushnil(L); so your stack will be … Read more