Sfairadora

  • Reference Guide

Function Definition

Type
Name
Description
Atom
name
The name of the function. It must be an identifier.
(see below)
ret_val
The type of the return value.
Seq(parameter definition)
(see below)
params
The parameters of the function.
Enki|Enkidu
expr
The expression defining the function.

ret_val

Type
Name
Description
type
The data type of the return value.
Bool
by_ref
If set TRUE, the result is passed by reference.
Bool
const
If set TRUE and the result is passed by reference, the reference is constant.

Parameter Definition

Type
Name
Description
Atom
name
The name of the parameter. It must be an identifier.
type
The data type of the parameter.
Bool
by_ref
If set TRUE, the parameter is passed by reference.
Bool
const
If set TRUE and the parameter is passed by reference, the reference is constant.
Bool
non_strict
If set TRUE, the parameter is non-strict (i.e. an Error value can be passed to the parameter).