Dashboard > BOO > ... > Language Guide > Comments
Comments Log In | Sign Up   View a printable version of the current page.

Added by Rodrigo B. de Oliveira , last edited by Bot Buider on Aug 19, 2005  (view change)
Labels: 
(None)

Single Line Comments

Everything that comes after a hash character (#) or a double backslace (//) is ignored until the end of the line.

# this is a comment
// This is also a comment
print("Hello, world!") // A comment can start anywhere in the line

Multiline Comments

Multiline comments in boo are delimited by the /* and */ sequences. Just like in C. Unlike in C though, boo multiline comments are nestable.

/* this is a comment */
/* this
comment
spans mutiple
line */

/* this is a /*
                 nested comment */
    comment */

nested comments must be properly, hmmmm, nested or the parser will complain

/* this is a /* syntax error */
Site running on a free Atlassian Confluence Open Source Project License granted to The Codehaus. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.6.2 Build:#919 Nov 26, 2007) - Bug/feature request - Contact Administrators