Version 7 of #

Updated 2006-04-05 15:53:30

At a place where a command is expected, the char # serves as comment. That can be the beginning of a line or immediately after a semicolon (;). A line or bracketed [expression] beginning with # is treated as nothing.

The # differs from the construct if 0 ... such that its following words are not processed as arguments of a true procedure but instead are really ignored.

If you write this:

 if 0 [puts a]

then the output is a, followed by the prompt:

 a
 %

If you write this:

 # [puts a]

then nothing happens:

 %

See also: if 0 {


Category Command