Monday, October 24, 2022

🆕 Logical Operators XOR, EQV, and IMP

Now BASIC Anywhere Machine's logical operators (AND, OR, XOR, EQV, IMP) should match GW-BASIC.  (See page 59 of the Commodore PC Personal Computer GW-BASIC Interpreter User's Guide.

That said, loads of testing to do: we have to check and see if there are any discrepancies in the operator's order of precedence.

Regardless, one should never rely on any language implementation's order of precedence, which could be different from language to language and from one implementation of a language to another implementation of the same language.  So: best to make use of parentheses to explicitly define order of operations.

No comments:

Post a Comment

🖥 Fan Dance

This is a port and mod of a SpecBAS program by ZXDunny. Run the program View the source code And, a "less is more?" version: Run t...