The following warnings occurred:
Warning [2] Undefined array key 0 - Line: 1677 - File: showthread.php PHP 8.2.31 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php 1677 errorHandler->error_callback
/showthread.php 916 buildtree




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: 1 Guest(s)