Allocated

From Mesham
Revision as of 00:34, 4 January 2010 by Polas (talk | contribs) (Created page with '== Syntax == allocated[{type}] == Semantics == This type sets the memory allocation of a variable, which may not be modified once set. == Example == var i: Int :: allocated…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Syntax

allocated[{type}]

Semantics

This type sets the memory allocation of a variable, which may not be modified once set.

Example

var i: Int :: allocated[];

In this example the variable i is an integer. Although the allocated type is provided, no addition information is given and as such Mesham allocates it to each processor.