The help says, "Conversely, whenever a number is used where a string is expected, the number is converted to a string, in a reasonable format." However, I've found that to not always be the case when using the string functions.
For example, this:
Code:
temp=1234
test=temp.byte(3)
debug(test)
function onmainloop()
end
gives you an error: "attempt to index global 'temp' (a number value)".
Which is right? Should I be able to use the string functions on a number, or should I need to convert a number to string first?
For now I will do what works. Thanks!