Difference between revisions of "Directref"

From Mesham
Jump to navigationJump to search
m
Line 10: Line 10:
  
 
  var pid:Int :: allocated[multiple[]] :: directref[];
 
  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]]

Revision as of 18:18, 13 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[];

Since: Version 0.5