suve

awful: function: bwor

Declaration

mixed :bwor ( mixed $ARG , … )
mixed :b? ( mixed $ARG , … )

Summary

Takes any number of arguments. Takes the rightmost pair of arguments and performs a bitwise OR on them, and then performs ORs on the nth-rightmost argument and the result of previous operation. Value calculated is then returned.

Example

# Bitwise operations.
:writeln :b$ b10101010 b11001100
:writeln :b? b10101010 b11001100
:writeln :b^ b10101010 b11001100

wikipage modified on 2014/0601/2316