BaseXdb/basex — Issue #300: add bitwise operators
Author: jidanni
Created: 2011-12-03 02:37:26+00:00
State: open

The W3 Committee forgot bitwise operators.

E.g., in perl one can do

my @groups = qw/AM FM SW/;
printf
"\n",
$groups[$_], substr( $groups[$_], 0, 1 ), 0xff0000 >> 8 * $_
for 0 .. $#groups;

however in xquery one needs,

let $band := ("AM","FM","SW")
let $color := ("ff0000","00ff00","0000ff")
for $count in 1 to 3 return

So please inform the Working Group / Committee etc.