12-22-2012, 07:40 PM
Okay, I think I've implemented this one. Download 1.3.0s959.
Use:To compile it.
The following program:
Should trigger an error if you compile it with --explicit option.
You can also use #pragmas in source code, which is a way to change compiling options from within the source code.
NOTE: The OPTION command won't be implemented (it's being deprecated even in FreeBASIC). #pragmas are used in C/C++ compilers, and FreeBASIC. So ZXBASIC will support them too.
Use:
Code:
zxb --explicit <yourprogram.bas>
The following program:
Code:
LET a = 5
You can also use #pragmas in source code, which is a way to change compiling options from within the source code.
Code:
REM The following line will override command line parameters
#pragma explicit = True
LET a = 5