How to determine the correct data type used in function argument? e.g.
function incr (n)
------------------- which type of what?
n = n .. "foo"
n = n + 1
end
Hi there, you can use the type() function provided by the Standard Library to check the type of various values. I suggest you should offer the PIL manual an extensive read, it contains a lot of useful information and allows you to learn Lua in a linear fashion.