Difference between revisions of "Multiple"

From Mesham
Jump to navigationJump to search
m
Line 11: Line 11:
 
== Example ==
 
== Example ==
  
  var i: Int :: allocated[multiple[]];
+
  function void main() {
 +
    var i: Int :: allocated[multiple[]];
 +
};
  
 
In this example the variable ''i'' is an integer, allocated to all processes.
 
In this example the variable ''i'' is an integer, allocated to all processes.

Revision as of 14:23, 15 April 2013

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.

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