5 Basic Types
Gont includes following basic types:
-
int
signed integers, 32 or 64 bit wide, depending on architecture
-
float
IEEE double precision (64 bit) floating point numbers
-
string
character strings
-
bool
booleans, true and false are the
only possible values
-
void
empty type, or more accurately, type of which just
one value lives. While it cannot be spelled in current version of Gont,
it is implicitly created with return;
statement.
5.1 Pointers
There is no explicit notation of pointers. Structures and unions are
always treated as pointers (as in Java). Strings are built in type.
Pointers to functions are discussed in Section 8 below.