Menu

Inputs and outputs

Mark Anthony Taylor (Shyreman)

Functions, archetypes, methods and factory calls all define inputs and outputs separated by the mapping
symbol (->).

Input types can be:

Primitives - Int32, Int64, Float32, Float64, Bool and Pointer.
Structures
Archetypes
Interface references

Structures are passed by reference: that is, the called function can manipulate the members of the
callee.

Output types can be:

Primitives - Int32, Int64, Float32, Float64, Bool and Pointer.
Archetypes
Interface references.

If an output is not explicitly defined in the body of a function (or method) then it will default to
zero. In the case that an output is of type interface, then the default reference is the universal
null object for that interface. Archetypes default to null functions, which ignore all inputs an return default values on all outputs.


Related

Wiki: Content