User Tools

Site Tools


alternative_20comment_20styles

Alternative comment styles

by Richard Russell, May 2010

There are three main ways of incorporating multi-line comments (remarks) in your program:

Using the REM statement

        REM This is comment line one
        REM This is comment line two
        REM This is comment line three

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

        *| This is comment line one
        *| This is comment line two
        *| 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.

Using line continuation characters

        :\
        \\ This is comment line one
        \\ This is comment line two
        \\ This is comment line three
        \:

Comments of this kind are automatically deleted from a 'compiled' program if any of the crunch options is selected.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
alternative_20comment_20styles.txt · Last modified: 2024/01/05 00:22 by 127.0.0.1