-- is not support as one-line-comment
try this code in the debugger
ret=1 -- ret=2 ret=3
//ret=1 is the result
ret=1 --[[ ret=2 ]] ret=3
//ret=3 is the result
But both should be work http://en.wikibooks.org/wiki/Lua_Programming/How_to_Lua/comment
-- is not support as one-line-comment
try this code in the debugger
ret=1 -- ret=2 ret=3
//ret=1 is the result
ret=1 --[[ ret=2 ]] ret=3
//ret=3 is the result
But both should be work http://en.wikibooks.org/wiki/Lua_Programming/How_to_Lua/comment
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now