Proc

From Mesham

Jump to: navigation, search

Syntax

proc n

where n is a variable or value

Semantics

This will limit execution of a block to a certain process

Example

proc 0
{
   print["Hello from 0\n"];
};
proc 1
{
   print["hello from 1\n"];
};

The code example will run on two processes, the first will display the message 'Hello from 0, whilst the second will output the message hello from 1.

Personal tools