Difference between revisions of "Directref"

From Mesham
Jump to navigationJump to search
m (5 revisions imported)
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
== Example ==
 
== Example ==
  
  var pid:Int :: allocated[multiple[]] :: directref[];
+
  function void main() {
 +
    var pid:Int :: allocated[multiple[]] :: directref[];
 +
};
 +
 
 +
''Since: Version 0.5''
  
 
[[Category:Type Library]]
 
[[Category:Type Library]]
 
[[Category:Compound Types]]
 
[[Category:Compound Types]]
 
[[Category:Attribute Types]]
 
[[Category:Attribute Types]]

Latest revision as of 15:44, 15 April 2019

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

function void main() {
   var pid:Int :: allocated[multiple[]] :: directref[];
};

Since: Version 0.5