previous contents index next
(..Source Code Components..) Contents Index (Identifiers)

2.2.3 Comments

In SCARLET it is possible to insert comments into the source code at nearly every position. This is done by

/* comment */

It will cause the compiler to ignore all characters except the combinations /* and */ from the beginning of the comment up to the next end of comment. Therefore, comments may be nested, and since separation signs are ignored, comments can cover several lines.
We cannot place a comment within a string, because /* */ will simply be interpreted as part of the string.


previous contents index next
(..Source Code Components..) Contents Index (Identifiers)