[Contents]
[Prev][langde45.htm - MISSING] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Increment and decrement

A term of the form:

term ++

is called a post-increment.

The term must be an lvalue (see Expression Statements) and must have an arithmetic type. The type and value of the whole term is that of the incremented term. After the value is taken, 1 of the appropriate type is added to the lvalue. The result is undefined if the same object is changed more than once in the same expression.

The term:

term --

behaves analogously to the increment case, except that 1 is subtracted from the lvalue.



[Contents]
[Prev][langde45.htm - MISSING] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Copyright © 1998, Lucent Technologies, Inc. All rights reserved.