3.7. Comments

There are two ways insert comments into Gamma code. To comment out a line, you can use a double slash ( // ) like this:

    a = 5;
    b = 7;
    
    // This assigns the value of c.
    
    c = a + b;

To comment out a block of text, you can put the symbol /* at the beginning, and */ at the end, like this:

    a = 5;
    b = 7;
    
    /* This assigns the value of c,
       which is very important to the
       future of our project.*/
    
    c = a + b;
Note

It is not permitted to put an unmatched double quote mark ( " ) into the second type of comment. This is a feature that allows you to comment out a string, to include a comment mark in a string, and even to comment out a string that includes comment characters, like this:

    /*
    princ ("/* this is what a comment looks like\n");
    princ ("   when extended to multiple lines\n");
    princ ("*/\n");
    */

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.