Bitwise AND NOT opperator problems
linkdefender
Posts: 1
Im trying to use the AND NOT ( &/ )·opperator for·P basic 2.5 but every time i try and run the program i end up getting the '/' highlighted and an error that says 'expected constant, variable, unary operator, or ')''
Does anyone know why im getting this error, it doesnt make any sense to me why its not accepting the opperator &/
Does anyone know why im getting this error, it doesnt make any sense to me why its not accepting the opperator &/
Comments
I can confirm your results, and would guess that it may be a genuine bug. Very unusual to find such things, in my experience.
The same seems to be true of the other similar operator: OR NOT |/
Bruce Bates
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas Office
Example:
Z = ~ X ' complement the bits of X
Y = X & ~ mask ' AND X with complement of mask
The Stamp evaluates the unary ~ before the binary &.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com