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

๐Ÿ–ฅ Guillermo's Graph (Apple II BASIC to BAM port)

This program is a port (and very slight mod) of an Apple II program, shared by Guillermo Ibรกรฑez with the "BASIC Programming Language...