Re: Multi-line comments

new topic     » goto parent     » topic index » view thread      » older message » newer message

/ 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu