passing an array to a function

BlitzMax Forums/BlitzMax Beginners Area/passing an array to a function

There's a difference between using Var and not, but it isn't the one Htbaa said at first. If you use Var, you can also replace the array with another one. The following resizes the array, but wouldn't work without Var:

Function Resize(arr:Float[] Var)
  arr = arr[..arr.length*2]
End Function