Yan #5 Depends how you use it (XOR is a bitwise NOT/compliment)b = 10 Print Bin$(b) b :~ 2 Print Bin$(b) b :~ 2 Print Bin$(b) Print Bin$(~b)
Dreamora #6 hmm yeah you are right.Sorry for wrong posting above.Somehow missed the 2nd appearance of it in the help ...
marksibly #8 XOR is '~', eg:Print $face ~ $babeBitwise invert is also '~', eg:Print ~0This is similar to the dual use of the minus sign.
MrCredo #10 interesting...mark, can you add new keywords for this??? i don't like such symbols - this is unreadable~ -> XOR| -> BOR (bitwise OR)& -> BAND (bitwise AND)please please please...
Curtastic #12 I agree also.I like how we use Mod instead of %%%%@$#%^%^An how we can do x:Int,z:String, instead of x%,z$!#%@$%#
Gabriel #13 And it sure would save having to search the forum to find out why XOR doesn't work any more.
FlameDuck #14 mark, can you add new keywords for this??? Shouldn't it be BXOR tho? For consistence, XOR should be a conditional expression, ala. And Or and Not.
MrCredo #15 Flameduck: x=~xorx=XOR x (if it available in some days..years)is the same likex=-xbutx=y~zis harder to read thanx=y XOR ztheoreticaly 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) & 255looks not so goodr=(argb SHR 16) BAND 255is much better to read and understandi 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 infoshttp://en.wikipedia.org/wiki/Xorhttp://en.wikipedia.org/wiki/Logical_disjunctionhttp://en.wikipedia.org/wiki/Logical_conjunction