Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
values returned by comparations
#4
boriel Wrote:The same applies to the other boolean operations. If you REALLY need 0 and 1, you can convert a boolean result using SGN:

Thank you for the detailed explanation (I love Z80 assembler). In the future I'll check the boolean operations without "Sinclair Basic assumptions" Smile

boriel Wrote:Maybe another --strict-boolean flag? So (x == y) always = [0, 1] (Slower but compatible)

I see there are many little but important differences with Sinclair Basic. Some of them are not evident. I think only very simple programs, like the provided examples, can be ported without modifications. Some compatibility options would be great, to let more complex programs to be compiled without rewriting. I am not interested in compiling Sinclar Basic code, but in writing ZX Basic, though I'm learning the language by porting a bit complex Sinclair Basic program of mine. That's a good and fun way to learn.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)