Next: , Up: Types   [Contents][Index]

18.6.1 type

The type directive allows you to declare named types. The syntax is:

type name = type [, name = type]...;

where name is the name of the new type, and type is either a type specifier or the name of some other type.

The supported type specifiers are:

int<n>, uint<n>

Integral types. See Integer Types.


The string type. See String Types.


Array types. See Array Types.

struct { … }

Struct types. See Struct Types.


Function types. See Function Types.


The any type is used to implement polymorphism. See The any Type.