forked from hyperupcall-archive/volant
-
Notifications
You must be signed in to change notification settings - Fork 2
Basic data types
Apoorv Singal edited this page Aug 31, 2020
·
12 revisions
Volant has 13 basic types, u8, u16, u32, u64, i8, i16, i32, i64, f32, f64, bool, uptr and size_t.
u<size> is an unsigned integer of size bits, i<size> is a signed integer of size bits, f<size> is a floating-point number of size bits, bool is for storing Boolean values (true and false), uptr is an unsigned int large enough to store a memory address and size_t is an unsigned integer large enough to store the size of a block of memory.
See vectors, maps, structs, unions, enums, tuples, functions, arrays, pointers, promises and mutability for more on types.