User Tools

Site Tools


alternative_20comment_20styles

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
alternative_20comment_20styles [2018/04/14 06:47]
svein
alternative_20comment_20styles [2018/04/15 10:16] (current)
richardrussell old revision restored (2018/04/14 09:17)
Line 1: Line 1:
 =====Alternative comment styles===== =====Alternative comment styles=====
  
-//by Richard Russell, May 2010//\\ \\  There are three main ways of incorporating multi-line comments (remarks) in your program:\\ \\ +//by Richard Russell, May 2010//\\ \\  There are three main ways of incorporating multi-line comments (remarks) in your program: 
 ==== Using the REM statement ==== ==== Using the REM statement ====
 <code bb4w> ​   <code bb4w> ​  
Line 8: Line 9:
         REM This is comment line three         REM This is comment line three
 </​code> ​       ​ </​code> ​       ​
-Comments of this kind will be automatically removed from a '​compiled'​ program if the **Remove REMs** crunch option is selected. Therefore you can add as many comments as you like without affecting the size or performance of the executable program\\ \\ +Comments of this kind will be automatically removed from a '​compiled'​ program if the **Remove REMs** crunch option is selected. Therefore you can add as many comments as you like without affecting the size or performance of the executable program 
 ==== Using the *| command ==== ==== Using the *| command ====
 +<code bb4w>
         *| This is comment line one         *| This is comment line one
         *| This is comment line two         *| This is comment line two
         *| This is comment line three         *| This is comment line three
-Comments of this kind are preserved, irrespective of the crunch options. They are useful if, for example, you want to include a comment in a '​crunched'​ library.\\ \\ +</​code>​ 
 +Comments of this kind are preserved, irrespective of the crunch options. They are useful if, for example, you want to include a comment in a '​crunched'​ library. 
 + 
 ==== Using line continuation characters ==== ==== Using line continuation characters ====
 +<code bb4w>
         :\         :\
         \\ This is comment line one         \\ This is comment line one
Line 20: Line 26:
         \\ This is comment line three         \\ This is comment line three
         \:         \:
 +</​code>​
 Comments of this kind are automatically deleted from a '​compiled'​ program if **any** of the crunch options is selected. Comments of this kind are automatically deleted from a '​compiled'​ program if **any** of the crunch options is selected.
alternative_20comment_20styles.1523688446.txt.gz · Last modified: 2018/04/14 06:47 by svein