Difference between pages "Multiple" and "Directref"
From Mesham
(Difference between pages)
Jump to navigationJump to searchm (5 revisions imported) |
|||
Line 1: | Line 1: | ||
== Syntax == | == Syntax == | ||
− | + | directref[ ] | |
− | |||
− | |||
== Semantics == | == Semantics == | ||
− | + | This tells the compiler that the programmer might use this variable outside of the language (e.g. Via embedded C code) and not to perform certain optimisations which might not allow for this. | |
== Example == | == Example == | ||
− | + | var pid:Int :: allocated[multiple[]] :: directref[]; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Type Library]] | [[Category:Type Library]] | ||
− | [[Category: | + | [[Category:Composite Types]] |
− | [[Category: | + | [[Category:Attribute Types]] |
Revision as of 16:37, 12 January 2013
Syntax
directref[ ]
Semantics
This tells the compiler that the programmer might use this variable outside of the language (e.g. Via embedded C code) and not to perform certain optimisations which might not allow for this.
Example
var pid:Int :: allocated[multiple[]] :: directref[];