Allocated

From Mesham
Revision as of 18:14, 13 January 2013 by Polas (talk | contribs)
Jump to navigationJump to search

Syntax

allocated[type]

Where type is optional

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.

Since: Version 0.41b