We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If function defined like:
function foo(t) local name = t.name or "other" local num = t.num or 1 --Stuf end
Then it will raise an error when called like foo() Error messege in tabletop interpreter:
foo()
stdin:1: attempt to index local 't' (a nil value) stack traceback: stdin:1: in function 'foo' stdin:1: in main chunk [C]: ?
Same will occur in Codea. In order to fix this problem you need to use next function definition:
function foo(t) local t = t or {} local name = t.name or "other" local num = t.num or 1 --Stuf end
This problem is eliminated if all functions called only like foo{} Where it is occur: many places in project in functions definitions
foo{}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If function defined like:
Then it will raise an error when called like
foo()
Error messege in tabletop interpreter:
Same will occur in Codea.
In order to fix this problem you need to use next function definition:
This problem is eliminated if all functions called only like
foo{}
Where it is occur: many places in project in functions definitions
The text was updated successfully, but these errors were encountered: