Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Var declaration checking
#5
Okay, I think I've implemented this one. Download 1.3.0s959.
Use:
Code:
zxb --explicit <yourprogram.bas>
To compile it.
The following program:
Code:
LET a = 5
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.
Code:
REM The following line will override command line parameters
#pragma explicit = True
LET a = 5
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)