Logical vs bitwise NOT

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1463
Joined: Fri Oct 19, 2012 5:11 am

Logical vs bitwise NOT

Post by YahooArchive » Tue Dec 04, 2012 2:09 am

I've always contended writing software is the art of fooling the
compiler to do what you want.

If you don't like the NOT as logical vs bitwise, and the present
parser in the compiler, define your own--

function LOGNOT(x)
if x then return 0
return 1
end function

main:

if LOGNOT(xyzzy=plugh) then...



Post Reply