Last active
October 7, 2019 13:14
-
-
Save aprell/f53ced56d76a52ea4803df03a6cb65eb to your computer and use it in GitHub Desktop.
Another Lua gotcha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function f() | |
return 1, 2, 3 | |
end | |
print(f()) -- 1 2 3 | |
print(f(), 4) -- 1 4 | |
print(4, f()) -- 4 1 2 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Documented in Section 3.4 of the Lua Reference Manual: