[chuck-users] operators

Hans Aberg haberg-1 at telia.com
Thu Sep 9 10:04:59 EDT 2010

On 9 Sep 2010, at 12:50, Lars Ullrich wrote:

> Dear list, Is there a way to do this operator functions in chuck?
> ">>" Shift all bits to the right ( has the effect of dividing a  
> number by a power of two, but is less expensive in computer time.)
> "&" Bitwise intersection of two numbers. The & object performs a bit- 
> by-bit "and" of two numbers (expressed in binary for the task). It  
> is similar to the operator found in the C programming language.

See the ChucK manual, searching for "bitwise". These are the same as  
in C; in addition, there are operators like |=> corresponding to |=.

More information about the chuck-users mailing list