Missing operator documentation.
Posted: Mon Jul 09, 2018 10:57 pm
I am still amazed at things that are not present anywhere in the main documentation pages but should be such as bitwise, or logical, operators.
Only a very few would know about these built-in Core operators, perhaps an intrepid spelunker who enjoys exploring the Core-Changes Cavern or perhaps someone who once asked a Core developer if POL has bitwise operators and then of course the Core developers themselves. There might even be one or two Core devs who do not know of these hidden gems.
Well, here's the scoop on the four operators:
int & int Performs a logical and on the two integers.
int | int Performs a logical or on the two integers.
int ^ int Performs an exclusive-or (XOR) on the two integers.
~ int Performs a 32 bit "one's compliment" on the integer.
These need to be added to Racalac's eScript Guide in the Arithmetic section.
Only a very few would know about these built-in Core operators, perhaps an intrepid spelunker who enjoys exploring the Core-Changes Cavern or perhaps someone who once asked a Core developer if POL has bitwise operators and then of course the Core developers themselves. There might even be one or two Core devs who do not know of these hidden gems.
Well, here's the scoop on the four operators:
int & int Performs a logical and on the two integers.
int | int Performs a logical or on the two integers.
int ^ int Performs an exclusive-or (XOR) on the two integers.
~ int Performs a 32 bit "one's compliment" on the integer.
These need to be added to Racalac's eScript Guide in the Arithmetic section.