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

Send expressions

A send-expression takes the form:

send-expression:
	lvalue <- = expression

In the expression

e1 <- = e2

the lvalue e1 must have type chan of type, and e2 must be of that type. The value of e2 is sent over the channel. If no task is executing a channel receive operation on the specified channel, the sender blocks. Task synchronization is discussed in The alt Statement.



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

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