Inlinecom

Top  Previous  Next

This dollar command changes the delimiters used to start and end an in line comment from /* and */ to the characters specified.  Usage is discussed in the Comments chapter.  This command is invoked using the syntax

 

$inlinecom beginningcharacters endingcharacters

 

where beginningcharacters and endingcharacters are each two character specifications of the new beginning and ending delimiters to use.  An example follows (commentdol.gms):

 

$Oninline

x=x    /* in line comment */ +1;

$inlinecom /& &/

x=x    /& another in line comment &/+1;

Notes:

By default the delimiters are initialized to '/*' and '*/' but are not active.
The $inlinecom or $Oninline command must be used to activate the end-of-line comment before any in line comments can be used.
The $inlinecom dollar command activates the ability to use in line comments just as if $Oninline were used.
Two pairs of character strings must be given.