The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
A parameter is a way to pass the value of an expression to a procedure or a constructor.
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