Pointers

Pointers are intended for use by code that must perform low level interaction with the operating system and/or speed sensitive code. Pointers are not recommended for general use, as misuse of pointers can easily result in memory corruption causing all sorts of bugs and headaches!

Pointers are declared by appending Ptr to the type of a variable or function parameter declaration:
Local int_ptr:Int Ptr
The VarPtr operator allows you to find the address of a variable, yielding a pointer:
Local an_int=10
int_ptr=VarPtr an_int
Array style indexing is used to dereference pointers:
Print int_ptr[0]
BlitzMax also supports pointer arithmetic, using the standard + and - operators.