Next: , Previous: CHP Value References, Up: CHP Expressions


14.1.2 Operators

Standard binary arithmetic operations. Tentative type restriction: operands must be of equal int width. Return type is the same as operands.

Old CAST-style syntax for boolean logic operations.

Proposal: use C-style syntax so we may distinguish bitwise from logical operations.

Proposal: operator overloading to define arithmetic on user-defined types. (Then we could call this a Hierarchical Operator-Overloading Object-Oriented Circuit Description Language, or HOOOORCD.) Low priority.