Open mkilgore opened 2 years ago
It works as X ^ (-NOT Y)
which is at least compliant to the Wiki (works that way already in old SDL versions). Just stumbled over this while checking/cleaning/fancy things, those notes are in there for ages, but probably forgotten even by the former developers. They just noticed negative exponents didn't work and tried to fixed it so things like X ^ -Y
work now without paranthesis. But the fix isn't complete.
X ^ -NOT Y
is valid syntax in QB45, but gives a syntax error in QB64 due to it not understanding theNOT
operator can come after-
within exponentiation (It thinks there has to be a number). It does correctly understandX ^ NOT Y
andX ^ - Y
, so it's just the combination negating the NOT that confuses the parser. The oppositeX ^ NOT -Y
is seemly parsed correctly.