The Hyper Programming Language

Parameters

General

A parameter is a way to pass the value of an expression to a procedure or a constructor.

Syntax

The simplest form is a single input parameter:

name : type

Or you could define multiple parameters that share their type and parameter passing. The number of parameters that you 'join together' in this way is not limited, but the following shows what it looks like for three:

name1 & name2 & name3 : type

An input/output parameter is prefixed with the keyword inout:

inout name : type

See also


Valid HTML 4.01 Strict Valid CSS!