Single Type

Next: , Previous: Share, Index: Index

single[] will inform the compiler that the current variable is to be allocated to only one variable. This type will work by either the supplyance of the on type, or if there is only one process in the current scope no argument is required.

Examples

var a:String::allocated[single[on[11]]];
proc 1
{
var y:Char::allocated[single[]];
};

In the example, variable a is allocated on process 11. As variable y's declaration is limited to the scope of process 1, then y is located on this process only.

Last Modified: August 2008