// Functions are declared as public with the 'pub' keyword. // Public functions can be used outside the current file. // Functions not marked as public are restricted to the current file only.
// Allocate memory onto the heap by using 'alloc'. msg: &char = alloc(64); // You can only allocate to pointers. msg2: string = alloc(64); // 'string' is just an &char.