I have noticed that line beginning with a ':' are ignored by EhBASIC. Was this intentional or just a fortunate bug?
It allows a way to comment code sections in program files without incurring the overhead of REM statements.
For instance, when the following is sent to EhBASIC:
Code:
: The convention for variables and constants in this code is as follows:
: A, AA and aA = variables/constants in main body
: Aa = global variables/constants
: aa = variables/constants in subroutines
:
: It makes it easier for quick changes if global constants are defined one per line.
:
: Initialize global constants and variables here
:
10 Ix = 10
: constant - initial x index
20 Iy = 39
: constant - initial y index
30 Mx = 189
: constant - maximum x value for screen locations
.
.
.
. (etc...)
All those lines beginning with a colon are ignored.