Comments

A comment in an EGL file is a group of characters that is ignored in the generation process. You can create comments in either of the following ways:

You can place a comment inside or outside of an executable statement, as in this example:

   /* the assignment e = f occurs if a == b or if c == d */
   if (a == b         // one comparison
     || /* OR; another comparison */ c == d)
     e = f;  
   end
Because EGL does not support embedded multiline comments, the following entries cause an error:
   /* this line starts a comment /* and
      this line ends the comment, */ 
      but this line is not inside a comment at all */  

The comment in the first two lines includes a second opening delimiter (/*). An error results only when EGL tries to interpret the third line as source code.

The following is valid:

   a = b;   /* this line starts a comment // and 
      this line ends the comment */   

The double forward slashes (//) in the last example are themselves part of a larger comment.

The following considerations apply to comments in embedded SQL code:


Feedback