Difference between revisions of "Multiple"
From Mesham
Jump to navigationJump to search (→Semantics) |
|||
Line 7: | Line 7: | ||
== Semantics == | == Semantics == | ||
− | Included in allocated will (with no arguments) set the specific variable to have memory allocated to all processes within current scope. | + | Included in allocated will (with no arguments) set the specific variable to have memory allocated to all processes within current scope. This sets the variable to be private (i.e. no other processes can view it) to its allocated process. |
== Example == | == Example == |
Revision as of 12:53, 18 October 2016
Syntax
multiple[type]
Where type is optional
Semantics
Included in allocated will (with no arguments) set the specific variable to have memory allocated to all processes within current scope. This sets the variable to be private (i.e. no other processes can view it) to its allocated process.
Example
function void main() { var i: Int :: allocated[multiple[]]; };
In this example the variable i is an integer, allocated to all processes.
Since: Version 0.41b