Expressions

This section describes the syntax and semantics for the following forms of IDL constant expression: integer, floating-point, and fixed-point.

Integer Expressions

An integer expression consists of a combination of the following elements:

  • Integer literals.

  • Integer constants.

  • The +, -, ~ unary operators.

  • The +, -, *, /, %, <<, >>, &, |, ^ binary operators.

  • Integer sub-expressions.

The format of an integer literal is defined in the section “Integer Literals,” earlier in this chapter, and the syntax of integer constants is described in Chapter 15, “IDL Data Types” (under the various subheadings for short type, unsigned short type, long type, unsigned long type, long long type, and unsigned long long type).

The ~ unary operator generates the ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.