Coming from a C/C++/C# background, I was expecting the & and | operators in Cache ObjectScript to perform bitwise operations on integers, but apparently they don't.
I checked the online documentation http://docs.intersystems.com/latest/csp/docbook/DocBook.UI.Page.cls?KEY=...
but couldn't find any information on bitwise integer arithmetic.
So given the following code:
set x = 10 //bit pattern is : 1010