Difference between revisions of "File"

From Mesham
Jump to navigationJump to search
m
m (5 revisions imported)
 
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
== Example ==
 
== Example ==
  
  var i:File;
+
  function void main() {
 +
    var i:File;
 +
};
  
 
In this example variable ''i'' is explicitly declared to be of type ''File''.
 
In this example variable ''i'' is explicitly declared to be of type ''File''.

Latest revision as of 15:44, 15 April 2019

Syntax

File

Semantics

A file handle with which the programmer can use to reference open files on the file system

Default typing

In the absence of further type information, the following types are added to the chain:

Example

function void main() {
   var i:File;
};

In this example variable i is explicitly declared to be of type File.

Since: Version 0.41b

Communication

It is not currently possible to communicate file handles due to operating system constraints.