Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to manage part of a STRING?
#3
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)