01-09-2018, 05:46 PM
Well done! :!:
There's also another option, --string-base=1 to make the original BASIC code to work.
Also for arrays, --array-base=1
Check command line options for more flags: <!-- m --><a class="postlink" href="http://boriel.com/wiki/en/index.php/ZX_BASIC:Zxb#Command_Line_Options">http://boriel.com/wiki/en/index.php/ZX_ ... ne_Options</a><!-- m -->
Actually, for full compatibility with Sinclair BASIC, you can use --sinclair, which will enable the above plus --strict-boolean (boolean values always 0 or 1).
By default ZX BASIC uses base 0 and boolean values 0 for FALSE, and ANY other as true, because this allows better optimizations and performance.
There's also another option, --string-base=1 to make the original BASIC code to work.
Also for arrays, --array-base=1
Check command line options for more flags: <!-- m --><a class="postlink" href="http://boriel.com/wiki/en/index.php/ZX_BASIC:Zxb#Command_Line_Options">http://boriel.com/wiki/en/index.php/ZX_ ... ne_Options</a><!-- m -->
Actually, for full compatibility with Sinclair BASIC, you can use --sinclair, which will enable the above plus --strict-boolean (boolean values always 0 or 1).
By default ZX BASIC uses base 0 and boolean values 0 for FALSE, and ANY other as true, because this allows better optimizations and performance.