- the same as the type in C;
- Most of these types may have different sizes on different platforms, except for the guaranteed-size integer types;
examples:
/* atomic types */
unichar c = 'u';
float percentile = 0.75f;
const double MU_BOHR = 927.400915E-26;
bool the_box_has_crashed = false;
/* defining a struct */
struct Vector {
public double x;
public double y;
public double z;
}
/* defining an enum */
enum WindowType {
TOPLEVEL,
POPUP
}
ulong nbytes = sizeof(int32); // nbytes will be 4 (= 32 bits)