[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

Unary Operators

Table 2-1 lists Limbo's unary operators.
Table 2-1 Unary Operators
++ Increment (post- and prefix)
-- Decrement (post- and prefix)
+ Unary Plus
- Unary Minus
! Logical Negation (NOT)
* Reference ADT indirection
<- Channel operator (send and receive)
~ One's complement, bitwise negation (NOT)
ref Reference to an ADT object
hd List head
tl List tail
tagof Index of a pick element in an ADT
len Return size of



[Contents]
[Prev] [Next] [Limbo Basics] [Limbo Programming] [Language Definition]

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