Velo has type-safe, memory-safe pointers for pass-by-reference semantics. No pointer arithmetic is allowed. |
|
Create a pointer with an initial value, a null pointer, or take the address of a variable with |
|
Dereference with |
|
The address-of operator creates a reference to an existing variable. Modifying through the pointer changes the original. |
|
A classic swap function using pointers. |
|
Check for null before dereferencing. |
|