The Hyper Programming Language |
home | language reference | compiler | hyper on launchpad |
The default value for any class type is determined by its default constructor.
This table lists the default values for all built-in types:
Type | Default value |
---|---|
bool | false |
byte | 0 |
char | no default; must be initialized explicitly |
object | cannot be instantiated |
string | "" (the empty string) |
int, int16, int32, int64 | 0 |
nat, nat16, nat32, nat64 | 0 |
single, double, real | 0 |
pointer type | null |
array type | its elements are recursively initialized to their default value |