[Prev]
[Next][langde18.htm - MISSING]
[Limbo Basics] [Limbo Programming] [Language Definition]
Tuple type
The tuple type, denoted
(data-type-list)
is a type consisting of an ordered collection of two or more objects, each having its own data type. For each tuple type, the types of the members are fixed, but need not be identical; for example, a function might return a tuple containing an integer and a string. Each tuple type is characterized solely by the order and identity of the types it contains. Objects of tuple type can be assigned to a list of identifiers (to pick out the components), and a parenthesized, comma-separated list of expressions denotes a tuple.
[Prev]
[Next][langde18.htm - MISSING]
[Limbo Basics] [Limbo Programming] [Language Definition]
Copyright © 1998, Lucent Technologies, Inc. All rights
reserved.