Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » comments
next | previous | forward | backward | up | index | toc

comments -- comment

Use a double hyphen -- to introduce a comment in the text of a program. The comment runs from to the end of the line.

Emacs does a good job displaying the comments in a different color for visibility.
i1 : x = 1 -- this is a comment

o1 = 1
i2 : y = -* this is an enclosed comment *- 2

o2 = 2

The source of this document is in Macaulay2Doc/ov_repl.m2:63:0.