Skip to content

Types

Types in Deen are the main mechanism of memory management.
They allow the user to define specific data with a strict size.

Table of Deen Types:

TypeDescriptionSize (in bytes)Designation
i8Signed 8-bit integer type1i8
i16Signed 16-bit integer type2i16
i32Signed 32-bit integer type4i32
i64Signed 64-bit integer type8i64
u8Unsigned 8-bit integer type1u8
u16Unsigned 16-bit integer type2u16
u32Unsigned 32-bit integer type4u32
u64Unsigned 64-bit integer type8u64
usizeUnsigned integer type for size definitions (typically equivalent to u64)8usize
char8-bit unsigned integer type for character representation1char
*charString type. Internally, this is just a pointer to a sequence of characters-*char
bool1-bit integer boolean flag (0 - false, 1 - true)1bool
voidVoid type, representing the absence of a value0void
arrayBasic array type-[TYPE; SIZE]
tupleData structure that combines multiple types-(TYPE, TYPE, ...)
pointerPointer type for holding a reference to data-*TYPE
structBasic structure type-ALIAS
enumBasic enumeration type-ALIAS