Difference between pages "Category:Composition Types" and "Allocated"

From Mesham
(Difference between pages)
Jump to navigationJump to search
m (2 revisions imported)
 
 
Line 1: Line 1:
 +
== 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.
 +
 +
[[Category:Type Library]]
 
[[Category:Compound Types]]
 
[[Category:Compound Types]]
 +
[[Category:Allocation Types]]

Revision as of 17:48, 12 January 2013

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.

Pages in category ‘Composition Types’

The following 2 pages are in this category, out of 2 total.