Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
language:types [2023/04/09 23:54] – [Parameterized types] rajitlanguage:types [2025/04/21 14:32] (current) – [Parameterized types] rajit
Line 189: Line 189:
  
  
-===== Parameterized types =====+===== Parameterized built-in types =====
  
 Parameterized types give ACT considerable flexibility in type Parameterized types give ACT considerable flexibility in type
Line 232: Line 232:
 both directions, use: both directions, use:
 <code act> <code act>
-chan(bool,int) x; // a bool is transferred from sender to receiver, and an int is transferred from the receiver to the sender+// a bool is transferred from sender to receiver, and 
 +// an int is transferred from the receiver to the sender 
 +chan(bool,int) x;
 </code> </code>
 These are sometimes called //exchange channels//, since data is exchanged between the sender and receiver. These are sometimes called //exchange channels//, since data is exchanged between the sender and receiver.