XOR ?

BlitzMax Forums/BlitzMax Programming/XOR ?

Flameduck:

x=~x
or
x=XOR x (if it available in some days..years)
is the same like
x=-x

but

x=y~z
is harder to read than
x=y XOR z

theoreticaly here should exist XOR and BXOR...

I don't understand why mark sibly do not add BAND, BOR and XOR-words... otherwise blitzmax looks so "unperfect"

r=(argb SHR 16) & 255

looks not so good

r=(argb SHR 16) BAND 255

is much better to read and understand

i think this was a mistake to replace AND to & and add a logic AND instead of this. The most time i forget this and i write each time AND..

more infos

http://en.wikipedia.org/wiki/Xor
http://en.wikipedia.org/wiki/Logical_disjunction
http://en.wikipedia.org/wiki/Logical_conjunction