bitwise operators
Posted: Mon Apr 11, 2016 9:25 pm
Hello.
I've neglected the QL for too many years, and now I'm lost. (Also, I'm old and don't speak English very well: a very bad combo).
Enter 'The Question': I remember that in SuperBasic exists bitwise operators: && (AND) ^^ (XOR) and || (OR). But there is, in SuperBasic, the equivalent bitwise operator for NOT (~~)?
If I try
PRINT ~~value1 (edited, this is the correct form - in C - for bitwise not)
the result is a parser error (bad line).
Bitwise NOT can be implemented via SuperBasic extension, obviously. But I try to not reinvent the wheel.
Someone can help? Thanks in advance.
Emiliano (a.k.a. Flinx)
I've neglected the QL for too many years, and now I'm lost. (Also, I'm old and don't speak English very well: a very bad combo).
Enter 'The Question': I remember that in SuperBasic exists bitwise operators: && (AND) ^^ (XOR) and || (OR). But there is, in SuperBasic, the equivalent bitwise operator for NOT (~~)?
If I try
PRINT ~~value1 (edited, this is the correct form - in C - for bitwise not)
the result is a parser error (bad line).
Bitwise NOT can be implemented via SuperBasic extension, obviously. But I try to not reinvent the wheel.
Someone can help? Thanks in advance.
Emiliano (a.k.a. Flinx)