Posts in lua

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:

February 21, 2015 in lua, programming continue

Lua Gotchas

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?

December 21, 2014 in lua, programming continue