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

🖥 Pongy game

This program is a port (and slight mod) of the QB64pe program by SierraKen.  (SierraKen's program shared with the QB64pe community in th...