Bitwise folly...

BlitzMax Forums/BlitzMax Beginners Area/Bitwise folly...

Brucey(Posted 2007) [#1]
Argh...

Going a bit brain-dead here...

Can someone please show me the BlitzMax bitwise equivalents for :

flags &= ~wxAUI_MGR_TRANSPARENT_HINT

and

flags ^ flag


I think the latter is : flags ~ flag
...but the other one?

:-/


marksibly(Posted 2007) [#2]
Hi,

flags:&~wxAUI_MGR_TRANSPAENT_HINT

and

flags:~flag


SebHoll(Posted 2007) [#3]
I assume the confusion is over BlitzMax bitwise NOTs and XORs. Search and all will be revealed... 3rd post in particular is worth a read :-)

Btw, sorry to be off-topic, but your wxWidgets module looks very interesting. Especially with the tool pane stuff! Although, I'm not sure I could use it as it would take months to convert all Max'dGUI source code to the new module. Sniff, sniff.


ImaginaryHuman(Posted 2007) [#4]
~Value does a NOT, Value~Value2 does an XOR


Brucey(Posted 2007) [#5]
Thanks folks :-)

Every time I close my eyes, I see screens of C++... it makes my brain numb...


Dreamora(Posted 2007) [#6]
That was the main idea behind C and C++ when they were designed ... ;-)


FlameDuck(Posted 2007) [#7]
That was the main idea behind C and C++ when they were designed ... ;-)
Well you're half right.