[Prev]
[Next]
[Limbo Basics] [Limbo Programming] [Language Definition]
Creation of channels
The value of:
chan of data-type
is an initialized channel of the specified type. Just a declaration of a channel leaves it initialized to nil; before it can be used for communication it must be created. For example,
ch: chan of int; # just declares, sets ch to nil
. . .
ch = chan of int; # creates channel & assigns it
[Prev]
[Next]
[Limbo Basics] [Limbo Programming] [Language Definition]
Copyright © 1998, Lucent Technologies, Inc. All rights
reserved.