CTCCoco Posted February 18, 2010 Posted February 18, 2010 I see you can disable a line with -- but how you can disable all like in pawno you can do /* */. Thanks
50p Posted February 18, 2010 Posted February 18, 2010 --[[ code here --]] Actually, -- in front of ]] is not necessary.
Aibo Posted February 19, 2010 Posted February 19, 2010 well, but -- in front of ]] enables little trick: --[[ this way it's a block comment function someFunction(someVar) local anotherVar = someOtherFunction(someVar) someVar = nil anotherVar = nil return false end --]] and to uncomment the block, one more "-" is added at the start: ---[[ and this way it's a single line comment function someFunction(someVar) local anotherVar = someOtherFunction(someVar) someVar = nil anotherVar = nil return false end --]] and this is too and the code's on again *)
Dark Dragon Posted February 19, 2010 Posted February 19, 2010 well, but -- in front of ]] enables little trick: --[[ this way it's a block comment function someFunction(someVar) local anotherVar = someOtherFunction(someVar) someVar = nil anotherVar = nil return false end --]] and to uncomment the block, one more "-" is added at the start: ---[[ and this way it's a single line comment function someFunction(someVar) local anotherVar = someOtherFunction(someVar) someVar = nil anotherVar = nil return false end --]] and this is too and the code's on again *) ow, didn't know that one, seems pretty useful!
Recommended Posts
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