More Lua Gotchas
Speaking of Lua gotchas, here’s another one. In Lua, a function with n parameters is similar to a variadic function. As an example, consider:
continue↩
Speaking of Lua gotchas, here’s another one. In Lua, a function with n parameters is similar to a variadic function. As an example, consider:
continue
Lua is one of my favorite programming languages. Lua is easy to learn, but not entirely without gotchas if you’re used to other languages. One gotcha is related to for-loops. What do you think the following piece of code will print?
continue