bit-hack/nano-script

Allow arrays to be passed to functions as arguments

Closed this issue · 1 comments

Allow arrays to be passed to functions by reference like so:

function func1(array[8])
  array[2] = 1234
end

# should return 1234
function func2()
  var array[8]
  func1(array)
  return array[2]
end

Duplicate bug, closing this one.