The Hyper Programming Language

Default values

The default value for any class type is determined by its default constructor.

Built-in types

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

See also


Valid HTML 4.01 Strict Valid CSS!