CTCCoco Posted February 18, 2010 Share 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 Link to comment
50p Posted February 18, 2010 Share Posted February 18, 2010 --[[ code here --]] Actually, -- in front of ]] is not necessary. Link to comment
Aibo Posted February 19, 2010 Share 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 *) Link to comment
Dark Dragon Posted February 19, 2010 Share 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! Link to comment
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