Re: Multi-line comments
- Posted by jeremy (admin) Feb 22, 2009
- 1032 views
/ and / has the benefit of easily converting single line comments to multi line comments. Many places you have:
-- Function: greet() -- Parameters: -- * name - Name of person to greet -- * greeting - Message to greet with (defaults to Hello) --
Simply add two lines:
/-- -- Function: greet() -- Parameters: -- * name - Name of person to greet -- * greeting - Message to greet with (defaults to Hello) -- --/
Although, the formatting of that is a bit off. I wonder if -/ and /- would work as well, so formatting can be correct:
/- -- Function: greet() -- Parameters: -- * name - Name of person to greet -- * greeting - Message to greet with (defaults to Hello) -- -/
Jeremy