How to name an identifier

Overlapping of a simple variable name and an array name.

While Microsoft BASIC distinguishes an array name from a simple variable name by existence of a left parenthesis, Full BASIC does not allow a simple variable and an array name share the same name. For example, the following is wrong in syntax.

10 DIM A(10)
20 LET A=24
30 LET A(2)=10
30 PRINT A+A(2)
40 END


Overlapping of a function name and a simple variable name

As a supplied function name accompanied by a parenthesis is not a reserved word, a simple variable having the same of it is valid, but in that case, the supplied function cannot be used. For example, the following is wrong in syntax.

10 LET EXP=10
20 PRINT EXP(2)
30 END


Back