Code: Select all
PROC_arrayalias(a(), p%%, N%)
You can use this procedure to create two arrays which reference the same memory, for example:
Code: Select all
DIM one%(9)
PROC_arrayalias(two&(), ^one%(0), 40)
You can also use it to alias an array in a structure, useful if you want to apply one of the whole array operations to it, which you usually can't do:
Code: Select all
DIM struct{array%(4)}
PROC_arrayalias(temp%(), ^struct.array%(0), 5)
PRINT SUM(temp%())